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
 
- Public Member Functions inherited from nngn::OpenGLHandle< GLProgram >
constexpr OpenGLHandle ()=default
 
constexpr OpenGLHandle (u32 h) noexcept
 
 OpenGLHandle (const OpenGLHandle &)=delete
 
 OpenGLHandle (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
 ~OpenGLHandle ()
 
u32 id () const
 
u32id ()
 

Member Function Documentation

◆ bind_ubo()

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:

◆ create() [1/2]

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/2]

bool nngn::GLProgram::create ( u32 vert,
u32 frag )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy()

bool nngn::GLProgram::destroy ( )

◆ get_uniform_location()

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:

◆ set_uniform() [1/2]

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/2]

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:

The documentation for this struct was generated from the following files: