프로퍼티 | 타입 | 설명 | |
---|---|---|---|
None | ContentRef |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Init | void | ||
InitDefaultContent | void |
메소드 | 설명 | |
---|---|---|
Bind ( ContentRef |
Binds the given Texture to a texture unit in order to use it for rendering.
|
|
CreateFromPixmap ( ContentRef |
Creates a new Texture Resource based on the specified Pixmap, saves it and returns a reference to it.
|
|
LoadData ( ContentRef |
Loads the specified
|
|
LoadData ( ContentRef |
Loads the specified
|
|
LoadData ( |
||
LookupAtlas ( int index ) : System.Drawing.Rect |
Does a safe (null-checked, clamped) texture Duality.Resources.Pixmap.Atlas lookup.
|
|
LookupAtlas ( int index, System.Drawing.Rect &uv ) : void |
Does a safe (null-checked, clamped) texture Duality.Resources.Pixmap.Atlas lookup.
|
|
ReloadData ( ) : void |
Reloads this Textures pixel data. If the referred Duality.Resources.Pixmap has been modified, changes will now be visible.
|
|
ResetBinding ( int beginAtIndex ) : void |
Resets all Texture bindings to texture units beginning at a certain index.
|
|
RetrievePixelData ( ) : Duality.Resources.Pixmap.Layer |
Retrieves the pixel data that is currently stored in video memory.
|
|
Texture ( ) : System |
Sets up a new, uninitialized Texture.
|
|
Texture ( ContentRef |
Creates a new Texture based on a Duality.Resources.Pixmap.
|
|
Texture ( int width, int height, SizeMode sizeMode = SizeMode.Default, TextureMagFilter filterMag = TextureMagFilter.Linear, TextureMinFilter filterMin = TextureMinFilter.LinearMipmapLinear, TextureWrapMode wrapX = TextureWrapMode.ClampToEdge, TextureWrapMode wrapY = TextureWrapMode.ClampToEdge, PixelInternalFormat format = PixelInternalFormat.Rgba, PixelType pixelType = PixelType.UnsignedByte ) : System |
Creates a new empty Texture with the specified size.
|
메소드 | 설명 | |
---|---|---|
AdjustSize ( float width, float height ) : void |
Processes the specified size based on the Textures SizeMode.
|
|
OnCopyTo ( Resource r, Duality provider ) : void | ||
OnDisposing ( bool manually ) : void | ||
OnLoaded ( ) : void | ||
SetupOpenGLRes ( ) : void |
Sets up the Textures OpenGL resources, clearing previously uploaded pixel data.
|
메소드 | 설명 | |
---|---|---|
Init ( ) : void | ||
InitDefaultContent ( ) : void |
protected AdjustSize ( float width, float height ) : void | ||
width | float | |
height | float | |
리턴 | void |
public static Bind ( ContentRef |
||
tex | ContentRef |
The Texture to bind. |
texUnit | int | The texture unit where the Texture will be bound to. |
리턴 | void |
public static CreateFromPixmap ( ContentRef |
||
pixmap | ContentRef |
|
리턴 | ContentRef |
public LoadData ( ContentRef |
||
basePixmap | ContentRef |
The |
리턴 | void |
public LoadData ( ContentRef |
||
basePixmap | ContentRef |
The |
sizeMode | SizeMode | Specifies behaviour in case the source data has non-power-of-two dimensions. |
리턴 | void |
public LoadData ( |
||
data | ||
width | int | |
height | int | |
리턴 | void |
public LookupAtlas ( int index ) : System.Drawing.Rect | ||
index | int | |
리턴 | System.Drawing.Rect |
public LookupAtlas ( int index, System.Drawing.Rect &uv ) : void | ||
index | int | |
uv | System.Drawing.Rect | |
리턴 | void |
protected OnCopyTo ( Resource r, Duality provider ) : void | ||
r | Resource | |
provider | Duality | |
리턴 | void |
public static ResetBinding ( int beginAtIndex ) : void | ||
beginAtIndex | int | The first texture unit index from which on all bindings will be cleared. |
리턴 | void |
public RetrievePixelData ( ) : Duality.Resources.Pixmap.Layer | ||
리턴 | Duality.Resources.Pixmap.Layer |
public Texture ( ContentRef |
||
basePixmap | ContentRef |
The |
sizeMode | SizeMode | Specifies behaviour in case the source data has non-power-of-two dimensions. |
filterMag | TextureMagFilter | The OpenGL filter mode for drawing the Texture bigger than it is. |
filterMin | TextureMinFilter | The OpenGL fitler mode for drawing the Texture smaller than it is. |
wrapX | TextureWrapMode | The OpenGL wrap mode on the texel x axis. |
wrapY | TextureWrapMode | The OpenGL wrap mode on the texel y axis. |
format | PixelInternalFormat | The format in which OpenGL stores the pixel data. |
pixelType | PixelType | |
keepPixmapDataResident | bool | |
리턴 | System |
public Texture ( int width, int height, SizeMode sizeMode = SizeMode.Default, TextureMagFilter filterMag = TextureMagFilter.Linear, TextureMinFilter filterMin = TextureMinFilter.LinearMipmapLinear, TextureWrapMode wrapX = TextureWrapMode.ClampToEdge, TextureWrapMode wrapY = TextureWrapMode.ClampToEdge, PixelInternalFormat format = PixelInternalFormat.Rgba, PixelType pixelType = PixelType.UnsignedByte ) : System | ||
width | int | The Textures width. |
height | int | The Textures height |
sizeMode | SizeMode | Specifies behaviour in case the specified size has non-power-of-two dimensions. |
filterMag | TextureMagFilter | The OpenGL filter mode for drawing the Texture bigger than it is. |
filterMin | TextureMinFilter | The OpenGL fitler mode for drawing the Texture smaller than it is. |
wrapX | TextureWrapMode | The OpenGL wrap mode on the texel x axis. |
wrapY | TextureWrapMode | The OpenGL wrap mode on the texel y axis. |
format | PixelInternalFormat | The format in which OpenGL stores the pixel data. |
pixelType | PixelType | |
리턴 | System |