GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
opengl_texture::texture_rep Class Reference
Collaboration diagram for opengl_texture::texture_rep:

Public Member Functions

 texture_rep (opengl_functions &glfcns)
 
 texture_rep (opengl_functions &glfcns, GLuint id, int w, int h, int tw, int th)
 
 ~texture_rep (void)
 
void bind (int mode) const
 
void tex_coord (double q, double r) const
 

Public Attributes

opengl_functionsm_glfcns
 
int m_h
 
GLuint m_id
 
int m_th
 
int m_tw
 
double m_tx
 
double m_ty
 
bool m_valid
 
int m_w
 

Detailed Description

Definition at line 101 of file gl-render.cc.

Constructor & Destructor Documentation

◆ texture_rep() [1/2]

opengl_texture::texture_rep::texture_rep ( opengl_functions glfcns)
inline

Definition at line 105 of file gl-render.cc.

◆ texture_rep() [2/2]

opengl_texture::texture_rep::texture_rep ( opengl_functions glfcns,
GLuint  id,
int  w,
int  h,
int  tw,
int  th 
)
inline

Definition at line 110 of file gl-render.cc.

◆ ~texture_rep()

opengl_texture::texture_rep::~texture_rep ( void  )
inline

Definition at line 116 of file gl-render.cc.

References opengl_functions::glDeleteTextures(), m_glfcns, m_id, and m_valid.

Member Function Documentation

◆ bind()

void opengl_texture::texture_rep::bind ( int  mode) const
inline

Definition at line 122 of file gl-render.cc.

References opengl_functions::glBindTexture(), m_glfcns, m_id, and m_valid.

◆ tex_coord()

void opengl_texture::texture_rep::tex_coord ( double  q,
double  r 
) const
inline

Definition at line 128 of file gl-render.cc.

References opengl_functions::glTexCoord2d(), m_glfcns, m_tx, m_ty, m_valid, and r.

Member Data Documentation

◆ m_glfcns

opengl_functions& opengl_texture::texture_rep::m_glfcns

Definition at line 134 of file gl-render.cc.

Referenced by ~texture_rep(), bind(), and tex_coord().

◆ m_h

int opengl_texture::texture_rep::m_h

Definition at line 136 of file gl-render.cc.

◆ m_id

GLuint opengl_texture::texture_rep::m_id

Definition at line 135 of file gl-render.cc.

Referenced by ~texture_rep(), and bind().

◆ m_th

int opengl_texture::texture_rep::m_th

Definition at line 137 of file gl-render.cc.

◆ m_tw

int opengl_texture::texture_rep::m_tw

Definition at line 137 of file gl-render.cc.

◆ m_tx

double opengl_texture::texture_rep::m_tx

Definition at line 138 of file gl-render.cc.

Referenced by tex_coord().

◆ m_ty

double opengl_texture::texture_rep::m_ty

Definition at line 138 of file gl-render.cc.

Referenced by tex_coord().

◆ m_valid

bool opengl_texture::texture_rep::m_valid

Definition at line 139 of file gl-render.cc.

Referenced by ~texture_rep(), bind(), and tex_coord().

◆ m_w

int opengl_texture::texture_rep::m_w

Definition at line 136 of file gl-render.cc.


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