nngn
Loading...
Searching...
No Matches
nngn::GLProgram Struct Reference

#include <prog.h>

Inheritance diagram for nngn::GLProgram:
Collaboration diagram for nngn::GLProgram:

Public Member Functions

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
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
 ~OpenGLHandle ()
 
 ~OpenGLHandle ()
 
u32 id () const
 
u32id ()
 
u32 id () const
 
u32id ()
 

Member Function Documentation

◆ bind_ubo() [1/2]

bool nngn::GLProgram::bind_ubo ( const char *  name,
u32  binding 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 
)
Here is the call graph for this function:

◆ 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 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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: