![]() |
![]() |
![]() |
![]() |
DefaultTexture
Synopsis
define the Graphics Display Kit texture
group+OPort _GDtexture_templ
{
Node_Data+Byte+IPort2 _&data;
Node_Data+IPort2 _&colormap;
enum_tile { choices = {"Clamp", "Wrap", "Boundary"}; };
enum alpha { choices = {"Replace", "Modulate", "Decal"}; };
enum_filter { choices = {"Point", "Bilinear", "Trilinear"}; };
enum type { choices = {"Single Level", "Mip-Map"}; };
ptr+nonotify local_ptr;
};
};
GDtexture_templ+IPort2_ GDtexture
{
local_ptr+write;
method+notify_inst+notify_val upd_func = "GDtexture_update";
method+notify_deinst del_func = "GDtexture_delete";
};GDtexture _DefaultTexture
{
tile = GD_TILE_CLAMP;
alpha = GD_ALPHA_REPLACE;
filter = GD_FILTER_POINT;
type = GD_TYPE_UNFILTERED;
};Description
These templates define a Graphics Display Kit texture. GDtexture_templ defines the elements that cause the texture's methods to execute. GDtexture defines an instanceable version without default values. DefaultTexture defines an instanceable version with default values.
Input
A connection to the texture map's data. The data may be either a byte scalar or a byte vector of length 3 or 4 with the special data id that indicates that the data is RGB (that is, GD_RGB_DATA_ID).
An optional connection to the texture map's colormap. The colormap should be of length 256. You include a colormap when texture map's data is byte rather than RGB.
Parameters
This parameter controls what happens when the UV(W) values are outside the 0-1 range.
Clamp UV(W) values that are outside the 0-1 range. Render using the primary color
Clamp UV(W) values that are outside the 0-1 range. Render using the value at the texture's boundary
This parameter controls how to use the alpha value in the texture pixel to
control transparency.
Example
Libraries.Graphics_Display.Objects.DataObject
File
See also related modules
![]() |
![]() |
![]() |
![]() |