World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
TextureOpenGL.h
См. документацию.
1 #pragma once
3 
4 class TextureOpenGL : public Texture {
5  public:
6  int GetOpenGlTexture();
7 
9 
10  protected:
11  friend class RenderOpenGL;
12 
13  static Texture *Create(unsigned int width, unsigned int height, IMAGE_FORMAT format, const void * pixels);
14 
15  static Texture *Create(ImageLoader *loader);
16 
17  void SetOpenGlTexture(int ogl_texture) { this->ogl_texture = ogl_texture; }
18 
19  explicit TextureOpenGL(bool lazy_initialization = true)
21 
23 
24  virtual bool LoadImageData();
25 };
TextureOpenGL::ogl_texture
int ogl_texture
Definition: TextureOpenGL.h:22
TextureOpenGL::LoadImageData
virtual bool LoadImageData()
Definition: TextureOpenGL.cpp:58
TextureOpenGL::SetOpenGlTexture
void SetOpenGlTexture(int ogl_texture)
Definition: TextureOpenGL.h:17
TextureOpenGL::TextureOpenGL
TextureOpenGL(bool lazy_initialization=true)
Definition: TextureOpenGL.h:19
Image::loader
ImageLoader * loader
Definition: Image.h:47
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
Texture
Definition: Texture.h:4
TextureOpenGL::~TextureOpenGL
~TextureOpenGL()
Definition: TextureOpenGL.cpp:76
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
Image::lazy_initialization
bool lazy_initialization
Definition: Image.h:45
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
TextureOpenGL::GetOpenGlTexture
int GetOpenGlTexture()
Definition: TextureOpenGL.cpp:46
TextureOpenGL
Definition: TextureOpenGL.h:4
ImageLoader
Definition: ImageLoader.h:10
IMAGE_FORMAT
IMAGE_FORMAT
Definition: Image.h:4
TextureOpenGL::Create
static Texture * Create(unsigned int width, unsigned int height, IMAGE_FORMAT format, const void *pixels)
Definition: TextureOpenGL.cpp:6
Texture.h
RenderOpenGL
Definition: RenderOpenGL.h:7
pixels
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: SDL_opengl.h:1572