xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
xcal::render::opengl::GL::Texture类 参考

#include <texture.hpp>

Public 类型

enum class  color_format_t { RGB , RGBA , DEPTH , STENCIL }
 
enum class  pixel_type_t { UNSIGNED_BYTE , FLOAT }
 

Public 成员函数

 Texture (const Texture &)=delete
 
 Texture (Texture &&o)
 
Textureoperator= (const Texture &)=delete
 
Textureoperator= (Texture &&o)
 
 Texture (gl::GLenum target)
 
 ~Texture ()
 
bool_t is_valid () const
 
void image_2d (gl::GLint level, color_format_t internalformat, gl::GLsizei width, gl::GLsizei height, gl::GLint border, color_format_t format, pixel_type_t type, const void *data) const
 
void parameteri (gl::GLenum pname, gl::GLenum param) const
 
void bind (gl::GLenum target) const
 
void bind () const
 
void unbind ()
 
void swap (Texture &o)
 

静态 Public 成员函数

static void unbind (gl::GLenum target)
 
static gl::GLenum to_gl_enum (color_format_t format)
 
static gl::GLenum to_gl_enum (pixel_type_t type)
 

友元

class ::xcal::render::opengl::GL::FramebufferObject
 

详细描述

在文件 texture.hpp7 行定义.

成员枚举类型说明

◆ color_format_t

枚举值
RGB 
RGBA 
DEPTH 
STENCIL 

在文件 texture.hpp11 行定义.

◆ pixel_type_t

枚举值
UNSIGNED_BYTE 
FLOAT 

在文件 texture.hpp17 行定义.

构造及析构函数说明

◆ Texture() [1/3]

xcal::render::opengl::GL::Texture::Texture ( const Texture )
delete

◆ Texture() [2/3]

xcal::render::opengl::GL::Texture::Texture ( Texture &&  o)
inline

在文件 texture.hpp28 行定义.

引用了 swap().

◆ Texture() [3/3]

xcal::render::opengl::GL::Texture::Texture ( gl::GLenum  target)

在文件 texture.cc28 行定义.

◆ ~Texture()

xcal::render::opengl::GL::Texture::~Texture ( )

在文件 texture.cc32 行定义.

成员函数说明

◆ bind() [1/2]

void xcal::render::opengl::GL::Texture::bind ( ) const

在文件 texture.cc16 行定义.

◆ bind() [2/2]

void xcal::render::opengl::GL::Texture::bind ( gl::GLenum  target) const

在文件 texture.cc5 行定义.

被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().

◆ image_2d()

void xcal::render::opengl::GL::Texture::image_2d ( gl::GLint  level,
color_format_t  internalformat,
gl::GLsizei  width,
gl::GLsizei  height,
gl::GLint  border,
color_format_t  format,
pixel_type_t  type,
const void *  data 
) const

在文件 texture.cc44 行定义.

被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().

◆ is_valid()

bool_t xcal::render::opengl::GL::Texture::is_valid ( ) const
inline

在文件 texture.hpp36 行定义.

◆ operator=() [1/2]

Texture & xcal::render::opengl::GL::Texture::operator= ( const Texture )
delete

◆ operator=() [2/2]

Texture & xcal::render::opengl::GL::Texture::operator= ( Texture &&  o)
inline

在文件 texture.hpp30 行定义.

引用了 swap().

◆ parameteri()

void xcal::render::opengl::GL::Texture::parameteri ( gl::GLenum  pname,
gl::GLenum  param 
) const

在文件 texture.cc12 行定义.

被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().

◆ swap()

void xcal::render::opengl::GL::Texture::swap ( Texture o)

在文件 texture.cc36 行定义.

被这些函数引用 operator=(), xcal::render::opengl::GL::FramebufferObject::swap() , 以及 Texture().

◆ to_gl_enum() [1/2]

gl::GLenum xcal::render::opengl::GL::Texture::to_gl_enum ( color_format_t  format)
static

在文件 texture.cc22 行定义.

◆ to_gl_enum() [2/2]

gl::GLenum xcal::render::opengl::GL::Texture::to_gl_enum ( pixel_type_t  type)
static

在文件 texture.cc40 行定义.

◆ unbind() [1/2]

void xcal::render::opengl::GL::Texture::unbind ( )

在文件 texture.cc19 行定义.

被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().

◆ unbind() [2/2]

void xcal::render::opengl::GL::Texture::unbind ( gl::GLenum  target)
static

在文件 texture.cc8 行定义.

友元及相关函数文档

◆ ::xcal::render::opengl::GL::FramebufferObject

在文件 texture.hpp8 行定义.


该类的文档由以下文件生成: