#include <prog.h>
|
bool | create (u32 vert, u32 frag) |
|
bool | create (std::string_view vs_name, std::string_view fs_name, std::span< const u8 > vs, std::span< const u8 > fs) |
|
bool | destroy () |
|
bool | get_uniform_location (const char *name, int *l) const |
|
bool | set_uniform (const char *name, int v) const |
|
bool | set_uniform (const char *name, GLsizei n, const int *v) const |
|
bool | bind_ubo (const char *name, u32 binding) const |
|
bool | create (u32 vert, u32 frag) |
|
bool | create (std::string_view vs_name, std::string_view fs_name, std::span< const u8 > vs, std::span< const u8 > fs) |
|
bool | destroy () |
|
bool | get_uniform_location (const char *name, int *l) const |
|
bool | set_uniform (const char *name, int v) const |
|
bool | set_uniform (const char *name, GLsizei n, const int *v) const |
|
bool | bind_ubo (const char *name, u32 binding) const |
|
Public Member Functions inherited from nngn::OpenGLHandle< GLProgram > |
constexpr | OpenGLHandle ()=default |
|
constexpr | OpenGLHandle (u32 h) noexcept |
|
| OpenGLHandle (const OpenGLHandle &)=delete |
|
| OpenGLHandle (OpenGLHandle &&lhs) noexcept |
|
constexpr | OpenGLHandle ()=default |
|
constexpr | OpenGLHandle (u32 h) noexcept |
|
| OpenGLHandle (const OpenGLHandle &)=delete |
|
| OpenGLHandle (OpenGLHandle &&lhs) noexcept |
|
OpenGLHandle & | operator= (const OpenGLHandle &)=delete |
|
OpenGLHandle & | operator= (OpenGLHandle &&lhs) noexcept |
|
OpenGLHandle & | operator= (const OpenGLHandle &)=delete |
|
OpenGLHandle & | operator= (OpenGLHandle &&lhs) noexcept |
|
| ~OpenGLHandle () |
|
| ~OpenGLHandle () |
|
u32 | id () const |
|
u32 & | id () |
|
u32 | id () const |
|
u32 & | id () |
|
◆ bind_ubo() [1/2]
bool nngn::GLProgram::bind_ubo |
( |
const char * |
name, |
|
|
u32 |
binding |
|
) |
| const |
◆ bind_ubo() [2/2]
bool nngn::GLProgram::bind_ubo |
( |
const char * |
name, |
|
|
u32 |
binding |
|
) |
| const |
◆ create() [1/4]
bool nngn::GLProgram::create |
( |
std::string_view |
vs_name, |
|
|
std::string_view |
fs_name, |
|
|
std::span< const u8 > |
vs, |
|
|
std::span< const u8 > |
fs |
|
) |
| |
◆ create() [2/4]
bool nngn::GLProgram::create |
( |
std::string_view |
vs_name, |
|
|
std::string_view |
fs_name, |
|
|
std::span< const u8 > |
vs, |
|
|
std::span< const u8 > |
fs |
|
) |
| |
◆ create() [3/4]
bool nngn::GLProgram::create |
( |
u32 |
vert, |
|
|
u32 |
frag |
|
) |
| |
◆ create() [4/4]
bool nngn::GLProgram::create |
( |
u32 |
vert, |
|
|
u32 |
frag |
|
) |
| |
◆ destroy() [1/2]
bool nngn::GLProgram::destroy |
( |
| ) |
|
◆ destroy() [2/2]
bool nngn::GLProgram::destroy |
( |
| ) |
|
◆ get_uniform_location() [1/2]
bool nngn::GLProgram::get_uniform_location |
( |
const char * |
name, |
|
|
int * |
l |
|
) |
| const |
◆ get_uniform_location() [2/2]
bool nngn::GLProgram::get_uniform_location |
( |
const char * |
name, |
|
|
int * |
l |
|
) |
| const |
◆ set_uniform() [1/4]
bool nngn::GLProgram::set_uniform |
( |
const char * |
name, |
|
|
GLsizei |
n, |
|
|
const int * |
v |
|
) |
| const |
◆ set_uniform() [2/4]
bool nngn::GLProgram::set_uniform |
( |
const char * |
name, |
|
|
GLsizei |
n, |
|
|
const int * |
v |
|
) |
| const |
◆ set_uniform() [3/4]
bool nngn::GLProgram::set_uniform |
( |
const char * |
name, |
|
|
int |
v |
|
) |
| const |
◆ set_uniform() [4/4]
bool nngn::GLProgram::set_uniform |
( |
const char * |
name, |
|
|
int |
v |
|
) |
| const |
The documentation for this struct was generated from the following files: