Simon Gibbs (Simon.Gibbs++at++gmd.de)
Wed, 6 Mar 1996 14:13:06 +0100 (MET)
IRIS GL
-------
pfNewTex, pfTexFormat, ...
pfGetGLHandle
subtexload (in draw callback)
Open GL
-------
vTex = pfNewTex(pfGetSharedArena());
pfTexFilter(vTex, PFTEX_MINFILTER, PFTEX_BILINEAR);
pfTexFilter(vTex, PFTEX_MAGFILTER, PFTEX_BILINEAR);
pfTexRepeat(vTex, PFTEX_WRAP, PFTEX_CLAMP);
pfTexFormat(vTex, PFTEX_INTERNAL_FORMAT, PFTEX_RGB_5);
pfTexFormat(vTex, PFTEX_SUBLOAD_FORMAT, PF_ON);
pfTexImage(vTex, NULL, SIR_VEN_16BIT_TEXEL, 1024, 1024, 0);
pfTexLoadMode(vTex, PFTEX_LOAD_SOURCE, PFTEX_SOURCE_VIDEO);
pfTexLoadOrigin(vTex, PFTEX_ORIGIN_DEST, 0, 0);
pfTexLoadSize(vTex, 768, 576); // for CCIR 601 (625)
pfTexLoadImage(vTex, NULL);
pfFormatTex(vTex);
pfLoadTex or pfSubloadTex (in draw callback)
The first works fine, but the second doesn't load (or refresh) the texture.
(The pfTexture man page says "repeated calls to pfLoadTex will
reload the image specified by pfTexLoadImage or the main texture
specified by pfTexImage...").
Any suggestions?
Simon Gibbs
GMD
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:31 PDT