C# Класс Sparrow.Textures.GLTexture

The GLTexture class is a concrete implementation of the abstract class Texture, containing a standard 2D OpenGL texture.
Наследование: Texture
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Init ( uint name, float width, float height, bool hasMipMaps, float scale, bool premultipliedAlpha ) : void

Описание методов

GLTexture() публичный Метод

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
Результат System

GLTexture() публичный Метод

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
Результат System