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

Classes

class  texture_rep
 

Public Member Functions

 opengl_texture (const opengl_texture &)=default
 
 opengl_texture (opengl_functions &glfcns)
 
 opengl_texture (opengl_functions &glfcns, GLuint id, int w, int h, int tw, int th)
 
 ~opengl_texture (void)=default
 
void bind (int mode=GL_TEXTURE_2D) const
 
bool is_valid (void) const
 
opengl_textureoperator= (const opengl_texture &)=default
 
void tex_coord (double q, double r) const
 

Static Public Member Functions

static opengl_texture create (opengl_functions &glfcns, const octave_value &data)
 

Private Member Functions

 opengl_texture (const std::shared_ptr< texture_rep > &new_rep)
 

Private Attributes

std::shared_ptr< texture_repm_rep
 

Detailed Description

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

Constructor & Destructor Documentation

◆ opengl_texture() [1/4]

opengl_texture::opengl_texture ( opengl_functions glfcns)
inline

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

Referenced by create().

◆ opengl_texture() [2/4]

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

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

◆ opengl_texture() [3/4]

opengl_texture::opengl_texture ( const opengl_texture )
default

◆ ~opengl_texture()

opengl_texture::~opengl_texture ( void  )
default

◆ opengl_texture() [4/4]

opengl_texture::opengl_texture ( const std::shared_ptr< texture_rep > &  new_rep)
inlineprivate

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

Member Function Documentation

◆ bind()

void opengl_texture::bind ( int  mode = GL_TEXTURE_2D) const
inline

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

References m_rep.

◆ create()

◆ is_valid()

bool opengl_texture::is_valid ( void  ) const
inline

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

References m_rep.

Referenced by opengl_renderer::draw_texture_image().

◆ operator=()

opengl_texture& opengl_texture::operator= ( const opengl_texture )
default

◆ tex_coord()

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

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

References m_rep, and r.

Referenced by opengl_renderer::draw_surface(), and opengl_renderer::draw_texture_image().

Member Data Documentation

◆ m_rep

std::shared_ptr<texture_rep> opengl_texture::m_rep
private

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

Referenced by bind(), is_valid(), and tex_coord().


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