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
Afficher le fichier Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

GLTexture() public méthode

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
Résultat System

GLTexture() public méthode

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
Résultat System