The Texture module enables applications to define raster images and texturing parameters to be used to map image data onto graphics primitives. Texture objects differ from Bitmap objects in that a Bitmap object only stores a single bit at each pixel whereas a Texture object stores "image" data, which generally consists of 32 bits, at each pixel. Texture image data may be set pixel by pixel from the host application or loaded from industry standard image files via an FBuffer object. For applications in scientific visualization or finite element post processing, algorithmically generated, one-dimensional texture maps representing the mapping of scalar data to color are useful.
*vgl_BitmapBegin - create an instance of a Bitmap object vgl_BitmapEnd - destroy an instance of a Bitmap object vgl_BitmapError - return Bitmap object error flag vgl_BitmapCopy - make a copy of a Bitmap object
vgl_BitmapClear - clear all bitmap bits to zero vgl_BitmapDef - define bitmap dimensions Inq - inquire bitmap dimensions vgl_BitmapLoad - create one of several built-in bitmaps vgl_BitmapSetBit - set individual bit value GetBit - get individual bit value vgl_BitmapSetRast - copy bitmap from array GetRast - copy bitmap to array
BITMAP_DOT xx xx xx xx BITMAP_DASH xxxx xxxx xxxx xxxx BITMAP_DOTDASH xxxx xx xxxx xx BITMAP_LDASH xxxxxx xxxxxx xxxxxx xxxxxx BITMAP_DOTLDASH xxxxxx xx xxxxxx xx BITMAP_DOTDOT xx xx xx xx xx xx xx xx BITMAP_DOTDOTLDASH xxxxxx xx xx xxxxxx xx xx BITMAP_LLDASH xxxxxxxxxxxx xxxxxxxxxxxxFor polygon fill, bitmaps are 16x16 arrays which have various amounts of bit density for implementing "screen door" type transparency. Figure 3-1 illustrates polygon transparency fill patterns which are available.
*vgl_BitmapBegin - create an instance of an Bitmap object
vgl_Bitmap *vgl_BitmapBegin ()
None
Destroy an instance of a Bitmap object using
void vgl_BitmapEnd (vgl_Bitmap *bitmap)
Return the current value of a Bitmap object error flag using
Vint vgl_BitmapError (vgl_Bitmap *bitmap)
Make a copy of a Bitmap object. The private data from the frombitmap object is copied to the bitmap object. Any previous private data in bitmap is lost.
void vgl_BitmapCopy (vgl_Bitmap *bitmap, vgl_Bitmap *frombitmap)
vgl_BitmapClear - clear entire bitmap to zero
void vgl_BitmapClear (vgl_Bitmap *bitmap)
bitmap Pointer to Bitmap object.
None
vgl_BitmapDef - define bitmap dimensions
void vgl_BitmapDef (vgl_Bitmap *bitmap, Vint width, Vint height)
bitmap Pointer to Bitmap object. width Width of the bitmap in pixels height Height of the bitmap in pixels
None
Inquire of defined width and height as output arguments using
void vgl_BitmapInq (vgl_Bitmap *bitmap, Vint *width, Vint *height)
vgl_BitmapLoad - create one of several built-in bitmaps
void vgl_BitmapLoad (vgl_Bitmap *bitmap, Vint irast)
bitmap Pointer to Bitmap object. irast The type of built-in bitmap to create =BITMAP_DOT Dotted line style bitmap =BITMAP_DASH Dashed line style bitmap =BITMAP_DOTDASH Dot-dashed line style bitmap =BITMAP_SCREEN1 Pattern with 1/8 transparency =BITMAP_SCREEN2 Pattern with 2/8 transparency =BITMAP_SCREEN3 Pattern with 3/8 transparency =BITMAP_SCREEN4 Pattern with 4/8 transparency =BITMAP_SCREEN5 Pattern with 5/8 transparency =BITMAP_SCREEN6 Pattern with 6/8 transparency =BITMAP_SCREEN7 Pattern with 7/8 transparency =BITMAP_SCREEN8 Pattern with full transparency =BITMAP_XES5 Small Xs =BITMAP_XES7 Larger Xs =BITMAP_CIRCLES5 Small circles =BITMAP_CIRCLES7 Larger circles =BITMAP_DIAMONDS5 Small diamonds =BITMAP_DIAMONDS7 Larger diamonds =BITMAP_BOXES5 Small boxes =BITMAP_BOXES7 Larger boxes =BITMAP_SQUARE4 Small squares =BITMAP_SQUARE8 Larger sqares =BITMAP_SQUARE8B Larger bold squares =BITMAP_SQUARE16B Large bold squares =BITMAP_CROSS8 Larger crosses =BITMAP_CROSS8B Larger bold crosses =BITMAP_CROSS16 Large crosses =BITMAP_CROSS16B Large bold crosses =BITMAP_BDIAGONAL8 Large upward left-right diagonal =BITMAP_BDIAGONAL8B Large bold upward left-right diagonal =BITMAP_BDIAGONAL16 Larger upward left-right diagonal =BITMAP_BDIAGONAL16B Larger bold upward left-right diagonal =BITMAP_FDIAGONAL8 Large downward left-right diagonal =BITMAP_FDIAGONAL8B Large bold downward left-right diagonal =BITMAP_FDIAGONAL16 Larger downward left-right diagonal =BITMAP_FDIAGONAL16B Larger bold downward left-right diagonal =BITMAP_HORIZONTAL4 Small horizontal hatch =BITMAP_HORIZONTAL8 Large horizontal hatch =BITMAP_HORIZONTAL8B Large bold horizontal hatch =BITMAP_HORIZONTAL16B Larger bold horizontal hatch =BITMAP_VERTICAL4 Small vertical hatch =BITMAP_VERTICAL8 Large vertical hatch =BITMAP_VERTICAL8B Large bold vertical hatch =BITMAP_VERTICAL16B Larger bold vertical hatch =BITMAP_PLUS9 Point icon + =BITMAP_ASTERISK9 Point icon * =BITMAP_CROSS9 Point icon x =BITMAP_BOX9 Point icon box =BITMAP_CROSSBOX9 Point icon crossed box =BITMAP_CIRCLE9 Point icon circle =BITMAP_TRIUP9 Point icon upward pointing triangle =BITMAP_TRIRIGHT9 Point icon right pointing triangle =BITMAP_TRIDOWN9 Point icon downward pointing triangle =BITMAP_TRILEFT9 Point icon left pointing triangle =BITMAP_DIAMOND9 Point icon diamond =BITMAP_TBOXBITS Point icon box with bits =BITMAP_TDIAMONDBITS Point icon diamond with bits =BITMAP_CROSSCIRCLE9 Point icon crossed circle =BITMAP_PLUSCIRCLE9 Point icon plussed circle
None
The following bitmaps are identical to Microsoft Windows brush patterns.
Bitmap irast Microsoft hatch brush pattern index BITMAP_HORIZONTAL8 HS_HORIZONTAL BITMAP_VERTICAL8 HS_VERTICAL BITMAP_SQUARE8 HS_CROSS BITMAP_CROSS8 HS_DIAGCROSS BITMAP_BDIAGONAL8 HS_BDIAGONAL BITMAP_FDIAGONAL8 HS_FDIAGONAL
The "Point icon" bitmaps are specifically designed to be used as bitmaps for point drawing. All symbols are unfilled.
This function frees any existing bitmap before loading the specified built-in bitmap. The bitmap dimensions of irast are set, memory is allocated and the specified bitmap is loaded.
vgl_BitmapSetBit - set an individual bit value in a bitmap
void vgl_BitmapSetBit (vgl_Bitmap *bitmap, Vint ix, Vint iy, Vint bit)
bitmap Pointer to Bitmap object. ix, iy Coordinates of bit bit Bit value to set
None
Get bit as an output argument using
void vgl_BitmapGetBit (vgl_Bitmap *bitmap, Vint ix, Vint iy, Vint *bit)
vgl_BitmapSetRast - set bitmap from array
void vgl_BitmapSetRast (vgl_Bitmap *bitmap, Vuchar *rast)
bitmap Pointer to Bitmap object. rast Array of bits to copy to bitmap memory
None
Copy a bitmap from bitmap memory to array rast using
void vgl_BitmapGetRast (vgl_Bitmap *bitmap, Vuchar *rast)
*vgl_RasFontBegin - create an instance of a RasFont object vgl_RasFontEnd - destroy an instance of a RasFont object vgl_RasFontError - return RasFont object error flag vgl_RasFontCopy - make a copy of a RasFont object
vgl_RasFontDraw - draw raster font vgl_RasFontLength - query length of a text string vgl_RasFontLoad - load a built-in font vgl_RasFontFreeTypeParam - query FreeType parameters vgl_RasFontFixedFreeType - query FreeType fixed point sizes vgl_RasFontLoadFreeType - load a scaleable FreeType font vgl_RasFontLoadFixedFreeType - load a fixed point FreeType font vgl_RasFontLoadWINFont - load a Microsoft Windows font vgl_RasFontLoadXFont - load a X windows font vgl_RasFontSetBitmap - set a Bitmap object as a font character GetBitmap - get a Bitmap object as a font character vgl_RasFontSetCharWidth - set character width GetCharWidth - get character width vgl_RasFontSetClampSize - set font size minmax limits vgl_RasFontSetMetrics - set width, height, offset and base of font GetMetrics - get width, height, offset and base of font vgl_RasFontSetObject - set attribute object vgl_RasFontSetParami - set raster font parameters vgl_RasFontSetPixelSize - set raster font pixelsize vgl_RasFontSetSize - set font size multiplier GetSize - get font size multiplier vgl_RasFontSetSpacing - set character spacing GetSpacing - get character spacing
Note that the font size is limited by the maximum size allowed by Bitmap. This size limit is currently 256 by 256.
Figure 3-2 illustrates the available built-in fonts.
By default a raster font is drawn anchored at a world coordinate location and directed to the right in a plane perpendicular to the view direction, only the anchor point location is affected by modelview and projection transformations. However, as an option, raster fonts may be drawn in a user defined direction and plane. This option is enabled using vgl_RasFontSetParami with the parameter RASFONT_TEXTPLANE enabled. A raster font with RASFONT_TEXTPLANE enabled which is passed to the graphics interface using vgl_DrawFunRasFontDefine will be drawn using the current text plane. The drawing function vgl_DrawFunTextPlane is used to set the current text plane. An option is provided to control the scaling of the orientable raster font. Use vgl_RasFontSetParami with parameter RASFONT_DEVICESIZE to toggle device scaling of the raster font. If device scaling is enabled then the size of a pixel in the raster font bitmap will be approximately the size of a pixel on the graphics device. If device scaling is disabled then the size of a pixel in the raster font bitmap will be the raster font pixelsize specified using vgl_RasFontSetPixelSize.
*vgl_RasFontBegin - create an instance of a RasFont object
vgl_RasFont *vgl_RasFontBegin ()
None
Destroy an instance of a RasFont object using
void vgl_RasFontEnd (vgl_RasFont *rasfont)
Return the current value of a RasFont object error flag using
Vint vgl_RasFontError (vgl_RasFont *rasfont)
Make a copy of a RasFont object. The private data from the fromrasfont object is copied to the rasfont object. Any previous private data in rasfont is lost.
void vgl_RasFontCopy (vgl_RasFont *rasfont, vgl_RasFont *fromrasfont)
vgl_RasFontDraw - draw a raster font
void vgl_RasFontDraw (vgl_RasFont *rasfont, Vfloat x[3], Vint dc[3], Vtchar *text)
rasfont Pointer to RasFont object. x World coordinate anchor point dc Device coordinate offset text Text string
None
vgl_RasFontLength - query length of a text string
void vgl_RasFontLength (vgl_RasFont *rasfont, Vtchar *text, Vint *length)
rasfont Pointer to RasFont object. text Text string
length Length of text string in pixels
vgl_RasFontLoad - load one of several built-in raster fonts
void vgl_RasFontLoad (vgl_RasFont *rasfont, Vint ifont)
rasfont Pointer to RasFont object. ifont The type of built-in raster font to create =RASFONT_QUALITY9X13 Create 9x13 font =RASFONT_NORMALBOLD8X14 Create 8x14 font =RASFONT_NORMAL7X11 Create 7x11 font
None
vgl_RasFontFreeTypeParam - query FreeType parameters
void vgl_RasFontFreeTypeParam (vgl_RasFont *rasfont, Vchar *fontname, Vint itype, Vint *iparam)
rasfont Pointer to RasFont object. fontname Specifies the FreeType font file name. itype The FreeType fonts available =RASFONT_FREETYPE_NUMFIXED Number of fixed point fonts =RASFONT_FREETYPE_SCALABLE Scaleable font available
iparam Parameter value
vgl_RasFontFixedFreeType - query FreeType fixed point sizes
void vgl_RasFontFreeTypeParam (vgl_RasFont *rasfont, Vchar *fontname, Vint (*fixed)[2])
rasfont Pointer to RasFont object. fontname Specifies the FreeType font file name.
fixed Available Fixed point widths and heights.
vgl_RasFontLoadFreeType - load a scaleable FreeType font
vgl_RasFontLoadFreeType (vgl_RasFont *rasfont, Vint height, Vchar *fontname)
rasfont Pointer to RasFont object. height Point height of scaleable font fontname Specifies the FreeType font file name.
None
vgl_RasFontLoadFixedFreeType - load a fixed point FreeType font
vgl_RasFontLoadFixedFreeType (vgl_RasFont *rasfont, Vint height, Vchar *fontname)
rasfont Pointer to RasFont object. height Point height of fixed point font fontname Specifies the FreeType font file name.
None
vgl_RasFontLoadWINFont - load a Microsoft Windows font
void vgl_RasFontLoadWINFont (vgl_RasFont *rasfont, HFONT hfont)
rasfont Pointer to RasFont object. hfont Specifies a handle to a Microsoft Windows font
None
vgl_RasFontLoadXFont - load a X windows font
void vgl_RasFontLoadXFont (vgl_RasFont *rasfont, Display *display, Vchar *fontname)
rasfont Pointer to RasFont object. display Specifies a Display connection to the X server fontname Specifies the name of the font. The font name is a null terminated string which conforms to the X windows font naming convention.
None
vgl_RasFontSetBitmap - set pointer to bitmap object for a character
void vgl_RasFontSetBitmap (vgl_RasFont *rasfont, Vint ichar, vgl_Bitmap *bitmap)
rasfont Pointer to RasFont object. ichar Character position in rasfont to install bitmap bitmap Pointer to Bitmap object defining character
None
Get bitmap as an output argument using
void vgl_RasFontGetBitmap (vgl_RasFont *rasfont, Vint ichar, vgl_Bitmap **bitmap)
vgl_RasFontSetCharWidth - set character width
void vgl_RasFontSetCharWidth (vgl_RasFont *rasfont, Vint ichar, Vint width)
rasfont Pointer to RasFont object. ichar Character position in rasfont to set character width width Character width
None
Get width as an output argument using
void vgl_RasFontGetCharWidth (vgl_RasFont *rasfont, Vint ichar, Vint *width)
vgl_RasFontSetClampSize - set font size minmax limits
void vgl_RasFontSetClampSize (vgl_RasFont *rasfont, Vfloat minsize, Vfloat maxsize)
rasfont Pointer to RasFont object. minsize Bitmap pixel size
None
vgl_RasFontSetMetrics - set width, height, offset and base of font
void vgl_RasFontSetMetrics (vgl_RasFont *rasfont, Vint width, Vint height, Vint offset, Vint base)
rasfont Pointer to RasFont object. width, height Width and height of character in pixels. offset, base Horizontal and vertical position of character origin in raster.
None
Get width, height, offset and base as output arguments using
void vgl_RasFontGetMetrics (vgl_RasFont *rasfont, Vint *width, Vint *height, Vint *offset, Vint *base)
vgl_RasFontSetObject - set pointers to attribute objects
void vgl_RasFontSetObject (vgl_RasFont *rasfont, Vint objecttype, Vobject *object)
rasfont Pointer to RasFont object. objecttype The name of the object type to be set. =VGL_DRAWFUN DrawFun object object Pointer to the object to be set.
None
vgl_RasFontSetParami - set raster font parameters
void vgl_RasFontSetParami (vgl_RasFont *rasfont, Vint type, Vint iparam)
rasfont Pointer to RasFont object. type Type of display parameter to set =RASFONT_ANTIALIAS Toggle antialiased font support =RASFONT_DIRECTION Set raster font direction =RASFONT_TEXTPLANE Toggle orientable raster font =RASFONT_DEVICESIZE Toggle raster font device sizing =RASFONT_CLAMPSIZE Toggle raster font size clamping iparam Specifies the integer value that type will be set to. =SYS_ON Enable =SYS_OFF Disable
None
Enable orientable raster font using RASFONT_TEXTPLANE. By default RASFONT_TEXTPLANE is set to SYS_OFF.
Enable device sizing of an orientable raster font using RASFONT_DEVICESIZE. If device sizing is disabled, then the size of a pixel in the raster font bitmap is scaled to the world coordinate size specified by vgl_RasFontSetPixelSize. If device sizing is enabled then the size of a pixel in the raster font bitmap will be scaled to the size of a pixel on the graphics screen. By default RASFONT_DEVICESIZE is set to SYS_ON.
Enable size clamping of an orientable raster font when device sizing, RASFONT_DEVICESIZE, is disabled. In this case the projected size of a bitmap pixel is clamped to the device sizes specified by vgl_RasFontSetClampSize. This allows some device size control of a raster font which is world coordinate scaled. By default RASFONT_CLAMPSIZE is set to SYS_OFF.
Set the direction of a raster font using RASFONT_DIRECTION. The direction may be VGL_RIGHT, VGL_LEFT, VGL_BOTTOM or VGL_TOP. This option only applies to a non-orientable raster font. By default RASFONT_DIRECTION is set to VGL_RIGHT.
vgl_RasFontSetPixelSize - set raster font pixelsize
void vgl_RasFontSetPixelSize (vgl_RasFont *rasfont, Vfloat pixelsize)
rasfont Pointer to RasFont object. pixelsize Bitmap pixel size
None
vgl_RasFontSetSize - set character size multiplier
void vgl_RasFontSetSize (vgl_RasFont *rasfont, Vint size)
rasfont Pointer to RasFont object. size Character size multiplier
None
Get size as an output argument using
void vgl_RasFontGetSize (vgl_RasFont *rasfont, Vint *size)
vgl_RasFontSetSpacing - set character spacing
void vgl_RasFontSetSpacing (vgl_RasFont *rasfont, Vint spacing)
rasfont Pointer to RasFont object. spacing Number of pixels to insert between characters
None
Get spacing as an output argument using
void vgl_RasFontGetSpacing (vgl_RasFont *rasfont, Vint *spacing)
The Texture module provides functions to set the texture data texel by texel or load it from industry standard image file formats. Texture parameters affecting filtering, modulation and blending and boundary conditions may be set. The functions associated with a Texture object are the following.
*vgl_TextureBegin - create an instance of a Texture object vgl_TextureEnd - destroy an instance of a Texture object vgl_TextureError - return Texture object error flag vgl_TextureCopy - make a copy of a Texture object
vgl_TextureDef - define texture size Inq - inquire texture size vgl_TextureFBuffer - load texture data from a FBuffer object vgl_TextureLoad - load built-in texture data vgl_TextureSetColor - set texel components GetColor - get texel components vgl_TextureSetColors - set texel components GetColors - get texel components vgl_TextureSetEnv - set texture modulation and blending GetEnv - get texture modulation and blending vgl_TextureSetFilter - set texture filtering GetFilter - get texture filtering vgl_TextureSetTexels - set texel data as 32 bit unsigned integers GetTexels - get texel data as 32 bit unsigned integers vgl_TextureSetWrap - set texture boundary conditions GetWrap - get texture boundary conditions
An individual texel may contain from one to four 8-bit components. These components are normally interpreted as red, green, blue and alpha values. The number of components per texel and the width and height of a texel array are specified using vgl_TextureDef. This function must be called if loading the texel data explicitly with vgl_TextureSetTexels or vgl_TextureSetColors. If one uses a built-in texture or imports a texture using vgl_TextureLoad or vgl_TextureFBuffer, the the depth and size of the texel information is set automatically. Any previous texel data is deleted and vgl_TextureDef is called internally with the appropriate sizes. These sizes may be queried using vgl_TextureInq.
*vgl_TextureBegin - create an instance of a Texture object
vgl_Texture *vgl_TextureBegin ()
None
Destroy an instance of a Texture object using
void vgl_TextureEnd (vgl_Texture *texture)
Return the current value of a Texture object error flag using
Vint vgl_TextureError (vgl_Texture *texture)
Make a copy of a Texture object. The private data from the fromtexture object is copied to the texture object. Any previous private data in texture is lost.
void vgl_TextureCopy (vgl_Texture *texture, vgl_Texture *fromtexture)
vgl_TextureDef - define the size of texel data
void vgl_TextureDef (vgl_Texture *texture, Vint components, Vint xsize, Vint ysize)
texture Pointer to Texture object. components Number of color components in texture. 1 <= components <= 4. xsize Width of texture. ysize Height of texture. Set ysize = 1 for one dimensional textures.
None
If components = 1, the texel data is assumed to be a single luminance value. If components = 2, the texel data is assumed to be a luminance/alpha pair. If components = 3, the texel data is assumed to be a red, green, blue triple. If components = 4, the texel data is assumed to be a red, green, blue and alpha quadruple.
vgl_TextureFBuffer - load texture data from a FBuffer object
void vgl_TextureFBuffer (vgl_Texture *texture, vgl_FBuffer *fbuffer)
texture Pointer to Texture object. fbuffer Pointer to FBuffer object containing image data to load.
None
vgl_TextureDef is called internally with the appropriate number of texel components and data sizes.
vgl_TextureLoad - load a built-in texture
void vgl_TextureLoad (vgl_Texture *texture, Vint itext)
texture Pointer to Texture object. itext The type of built-in texture to create =TEXTURE_HUE_BANDED Create a 3 component, 256 by 1 texture containing a banded variation of hues from magenta through red.
None
vgl_TextureSetColor - set texel as floating point color components
void vgl_TextureSetColor (vgl_Texture *texture, Vint ix, Vint iy, Vfloat c[])
texture Pointer to Texture object. ix, iy Device coordinates of texel to set. c Vector of floating point color components
None
Get c as an output argument using
void vgl_TextureGetColor (vgl_Texture *texture, Vint ix, Vint iy, Vfloat c[])
vgl_TextureSetColors - set texture data as floating point color components
void vgl_TextureSetColors (vgl_Texture *texture, Vfloat c[])
texture Pointer to Texture object. c Vector of floating point color components
None
Get c as an output argument using
void vgl_TextureGetColors (vgl_Texture *texture, Vfloat c[])
vgl_TextureSetEnv - set texture mapping environment
void vgl_TextureSetEnv (vgl_Texture *texture, Vint env)
texture Pointer to Texture object. env Texture environment mode. =TEXTURE_BLEND Blending mode =TEXTURE_DECAL Decal mode =TEXTURE_MODULATE Modulation mode
None
components TEXTURE_MODULATE TEXTURE_DECAL TEXTURE_BLEND 1 cout=l*cin undefined cout=(1-l)*cin+l*cenv aout=ain aout=ain 2 cout=l*cin undefined cout=(1-l)*cin+l*cenv aout=a*ain aout=a*ain 3 cout=c*cin cout=c undefined aout=ain aout=ain 4 cout=c*cin cout=(1-a)*cin+a*c undefined aout=a*ain aout=ainThe default is modulation mode. Use vgl_TextureSetEnvColor to set the environment color cenv.
Get env as an output argument using
void vgl_TextureGetEnv (vgl_Texture *texture, Vint *env)
vgl_TextureSetEnvColor - set environment color
void vgl_TextureSetEnvColor (vgl_Texture *texture, Vfloat cenv[4])
texture Pointer to Texture object. cenv RGBA quadruple of environment color.
None
Get cenv as an output argument using
void vgl_TextureGetEnvColor (vgl_Texture *texture, Vfloat cenv[4])
vgl_TextureSetFilter - set minification and magnification filters
void vgl_TextureSetFilter (vgl_Texture *texture, Vint minfilter, Vint magfilter)
texture Pointer to Texture object. minfilter Minification filter =TEXTURE_NEAREST Use nearest filtering =TEXTURE_LINEAR Use linear interpolation filtering magfilter Magnification filter =TEXTURE_NEAREST Use nearest filtering =TEXTURE_LINEAR Use linear interpolation filtering
None
Get minfilter and magfilter as output arguments using
void vgl_TextureGetFilter (vgl_Texture *texture, Vint *minfilter, Vint *magfilter)
vgl_TextureSetTexels - set texel data as 32 bit unsigned integers
void vgl_TextureSetTexels (vgl_Texture *texture, Vuint texels[])
texture Pointer to Texture object. texels Vector of RGBA data.
None
Get texels as an output argument using
void vgl_TextureGetTexels (vgl_Texture *texture, Vuint texels[])
vgl_TextureSetWrap - set texture boundary conditions
void vgl_TextureSetWrap (vgl_Texture *texture, Vint swrap, Vint twrap)
texture Pointer to Texture object. swrap Boundary condition for texture coordinate s. =TEXTURE_CLAMP Clamp texture coordinate =TEXTURE_REPEAT Repeat texture coordinate twrap Boundary condition for texture coordinate t. =TEXTURE_CLAMP Clamp texture coordinate =TEXTURE_REPEAT Repeat texture coordinate
None
Get swrap and twrap as an output arguments using
void vgl_TextureGetWrap (vgl_Texture *texture, Vint *swrap, Vint *twrap)