C# Class Sparrow.Textures.GLTexture

The GLTexture class is a concrete implementation of the abstract class Texture, containing a standard 2D OpenGL texture.
Inheritance: Texture
Exibir arquivo Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Public Methods

Method Description
GLTexture ( IntPtr imgData, TextureProperties properties ) : System

Initializes an uncompressed texture with with raw pixel data and a set of properties. Width and Height are expected pixel dimensions.

GLTexture ( uint name, float width, float height, bool hasMipMaps, float scale, bool premultipliedAlpha ) : System

Initializes a texture with the given properties. Width and height are expected pixels.

Private Methods

Method Description
Init ( uint name, float width, float height, bool hasMipMaps, float scale, bool premultipliedAlpha ) : void

Method Details

GLTexture() public method

Initializes an uncompressed texture with with raw pixel data and a set of properties. Width and Height are expected pixel dimensions.
public GLTexture ( IntPtr imgData, TextureProperties properties ) : System
imgData System.IntPtr
properties TextureProperties
return System

GLTexture() public method

Initializes a texture with the given properties. Width and height are expected pixels.
public GLTexture ( uint name, float width, float height, bool hasMipMaps, float scale, bool premultipliedAlpha ) : System
name uint
width float
height float
hasMipMaps bool
scale float
premultipliedAlpha bool
return System