zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Texture_GL Class Reference

#include <Texture.h>

Inherits Zeni::Texture.

Public Member Functions

 Texture_GL (const String &filename, const bool &repeat, const bool &lazy_loading=false)
 
 Texture_GL (const Image &image)
 
 Texture_GL (const Point2i &size, const bool &repeat)
 For render-to-texture. More...
 
virtual ~Texture_GL ()
 
virtual void apply_Texture () const
 Apply a Texture to upcoming polygons. More...
 
const Point2iget_size () const
 Get the resolution of the Texture on the GPU. More...
 
- Public Member Functions inherited from Zeni::Texture
 Texture (const bool &repeat_)
 
virtual ~Texture ()
 

Friends

class Video_GL_Fixed
 
class Video_GL_Shader
 

Additional Inherited Members

- Protected Attributes inherited from Zeni::Texture
const bool m_repeat
 

Detailed Description

Definition at line 111 of file Texture.h.

Constructor & Destructor Documentation

Zeni::Texture_GL::Texture_GL ( const String filename,
const bool &  repeat,
const bool &  lazy_loading = false 
)

Definition at line 151 of file Texture.cpp.

References Zeni::Texture::m_repeat.

Zeni::Texture_GL::Texture_GL ( const Image image)

Definition at line 162 of file Texture.cpp.

Zeni::Texture_GL::Texture_GL ( const Point2i size,
const bool &  repeat 
)

For render-to-texture.

Definition at line 174 of file Texture.cpp.

Zeni::Texture_GL::~Texture_GL ( )
virtual

Member Function Documentation

void Zeni::Texture_GL::apply_Texture ( ) const
virtual

Apply a Texture to upcoming polygons.

Implements Zeni::Texture.

Definition at line 204 of file Texture.cpp.

References GL_MODULATE, GL_TEXTURE_2D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, glBindTexture, glEnable, glTexEnvf, and Zeni::Texture::m_repeat.

const Point2i & Zeni::Texture_GL::get_size ( ) const
inlinevirtual

Friends And Related Function Documentation

friend class Video_GL_Fixed
friend

Definition at line 115 of file Texture.h.

friend class Video_GL_Shader
friend

Definition at line 116 of file Texture.h.


The documentation for this class was generated from the following files: