xcal
基于 C++23 的现代图形渲染引擎
|
#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) | |
Texture & | operator= (const Texture &)=delete |
Texture & | operator= (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.hpp 第 7 行定义.
|
strong |
枚举值 | |
---|---|
RGB | |
RGBA | |
DEPTH | |
STENCIL |
在文件 texture.hpp 第 11 行定义.
|
strong |
枚举值 | |
---|---|
UNSIGNED_BYTE | |
FLOAT |
在文件 texture.hpp 第 17 行定义.
|
delete |
|
inline |
在文件 texture.hpp 第 28 行定义.
引用了 swap().
xcal::render::opengl::GL::Texture::Texture | ( | gl::GLenum | target | ) |
在文件 texture.cc 第 28 行定义.
xcal::render::opengl::GL::Texture::~Texture | ( | ) |
在文件 texture.cc 第 32 行定义.
void xcal::render::opengl::GL::Texture::bind | ( | ) | const |
在文件 texture.cc 第 16 行定义.
void xcal::render::opengl::GL::Texture::bind | ( | gl::GLenum | target | ) | const |
在文件 texture.cc 第 5 行定义.
被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().
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.cc 第 44 行定义.
被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().
|
inline |
在文件 texture.hpp 第 36 行定义.
在文件 texture.hpp 第 30 行定义.
引用了 swap().
void xcal::render::opengl::GL::Texture::parameteri | ( | gl::GLenum | pname, |
gl::GLenum | param | ||
) | const |
在文件 texture.cc 第 12 行定义.
被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().
void xcal::render::opengl::GL::Texture::swap | ( | Texture & | o | ) |
在文件 texture.cc 第 36 行定义.
被这些函数引用 operator=(), xcal::render::opengl::GL::FramebufferObject::swap() , 以及 Texture().
|
static |
在文件 texture.cc 第 22 行定义.
|
static |
在文件 texture.cc 第 40 行定义.
void xcal::render::opengl::GL::Texture::unbind | ( | ) |
在文件 texture.cc 第 19 行定义.
被这些函数引用 xcal::render::opengl::GL::FramebufferObject::FramebufferObject().
|
static |
在文件 texture.cc 第 8 行定义.
|
friend |
在文件 texture.hpp 第 8 行定义.