Class AS::Texture
In: lib/as_texture.rb
Parent: Object

Methods

bind   copy_rect   new   open   tex_env_mode   tex_target  

Constants

Filter = { :smooth => [GL::LINEAR, GL::LINEAR], :blocky => [GL::NEAREST, GL::NEAREST], :mip_smooth => [GL::LINEAR_MIPMAP_LINEAR, GL::LINEAR], :mip_blocky => [GL::NEAREST_MIPMAP_LINEAR, GL::LINEAR], }   Possible filter parameters.
Format = { :alpha => GL::ALPHA, :bw => GL::LUMINANCE, :rgb => GL::RGB, :rgba => GL::RGBA, }   Possible inform parameters
TextureDimError = Class.new(Exception)

Attributes

h  [R]  Texture image height.
size  [R]  The width and height of the texture.
tex_id  [R]  OpenGL texture object id.
w  [R]  Texture image width.

Public Class methods

Public Instance methods

Set as the current texture unit.

Draw from the source rectangle in texture coordinates into th destination rectangle in world coordinates.

Returns the default OpenGL texture environment mode. Override in subclasses to use different modes.

Returns the default texture target. Overriden in AS::RectTexture to provide support for rectangle textures.

[Validate]