MythTV  master
Public Member Functions | Public Attributes | List of all members
MythGLTexture Class Reference

#include <mythrenderopengl.h>

Inheritance diagram for MythGLTexture:
Inheritance graph
[legend]
Collaboration diagram for MythGLTexture:
Collaboration graph
[legend]

Public Member Functions

 MythGLTexture (QOpenGLTexture *Texture)
 
 MythGLTexture (GLuint Texture)
 
 ~MythGLTexture ()=default
 

Public Attributes

unsigned char * m_data { nullptr }
 
int m_bufferSize { 0 }
 
GLuint m_textureId { 0 }
 
QOpenGLTexture * m_texture { nullptr }
 
QOpenGLTexture::PixelFormat m_pixelFormat { QOpenGLTexture::RGBA }
 
QOpenGLTexture::PixelType m_pixelType { QOpenGLTexture::UInt8 }
 
QOpenGLBuffer * m_vbo { nullptr }
 
QSize m_size { QSize() }
 
QSize m_totalSize { QSize() }
 
bool m_flip { true }
 
bool m_crop { false }
 
QRect m_source { QRect() }
 
QRect m_destination { QRect() }
 
GLfloat m_vertexData [16] { 0.0F }
 
GLenum m_target { QOpenGLTexture::Target2D }
 
int m_rotation { 0 }
 

Detailed Description

Definition at line 44 of file mythrenderopengl.h.

Constructor & Destructor Documentation

◆ MythGLTexture() [1/2]

MythGLTexture::MythGLTexture ( QOpenGLTexture *  Texture)
explicit

Definition at line 40 of file mythrenderopengl.cpp.

◆ MythGLTexture() [2/2]

MythGLTexture::MythGLTexture ( GLuint  Texture)
explicit

Definition at line 45 of file mythrenderopengl.cpp.

◆ ~MythGLTexture()

MythGLTexture::~MythGLTexture ( )
default

Member Data Documentation

◆ m_data

unsigned char* MythGLTexture::m_data { nullptr }

◆ m_bufferSize

int MythGLTexture::m_bufferSize { 0 }

◆ m_textureId

GLuint MythGLTexture::m_textureId { 0 }

◆ m_texture

QOpenGLTexture* MythGLTexture::m_texture { nullptr }

◆ m_pixelFormat

QOpenGLTexture::PixelFormat MythGLTexture::m_pixelFormat { QOpenGLTexture::RGBA }

◆ m_pixelType

QOpenGLTexture::PixelType MythGLTexture::m_pixelType { QOpenGLTexture::UInt8 }

◆ m_vbo

QOpenGLBuffer* MythGLTexture::m_vbo { nullptr }

◆ m_size

QSize MythGLTexture::m_size { QSize() }

◆ m_totalSize

QSize MythGLTexture::m_totalSize { QSize() }

Definition at line 59 of file mythrenderopengl.h.

Referenced by MythOpenGLTonemap::CreateTexture().

◆ m_flip

bool MythGLTexture::m_flip { true }

Definition at line 60 of file mythrenderopengl.h.

Referenced by MythRenderOpenGL::UpdateTextureVertices().

◆ m_crop

bool MythGLTexture::m_crop { false }

◆ m_source

QRect MythGLTexture::m_source { QRect() }

Definition at line 62 of file mythrenderopengl.h.

Referenced by MythRenderOpenGL::UpdateTextureVertices().

◆ m_destination

QRect MythGLTexture::m_destination { QRect() }

◆ m_vertexData

GLfloat MythGLTexture::m_vertexData[16] { 0.0F }

◆ m_target

GLenum MythGLTexture::m_target { QOpenGLTexture::Target2D }

◆ m_rotation

int MythGLTexture::m_rotation { 0 }

Definition at line 66 of file mythrenderopengl.h.

Referenced by MythRenderOpenGL::UpdateTextureVertices().


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