nngn
Loading...
Searching...
No Matches
opengl.cpp File Reference
#include "graphics/graphics.h"
#include "os/platform.h"
#include "utils/log.h"
#include <algorithm>
#include <array>
#include <cstring>
#include <list>
#include <numeric>
#include <string>
#include <string_view>
#include <vector>
#include "font/font.h"
#include "graphics/glfw.h"
#include "graphics/shaders.h"
#include "math/camera.h"
#include "math/math.h"
#include "timing/profile.h"
#include "utils/flags.h"
#include "utils/literals.h"
#include "opengl.h"
#include "post.h"
#include "prog.h"
#include "resource.h"
#include "utils.h"
#include "vao.h"
Include dependency graph for opengl.cpp:

Classes

struct  anonymous_namespace{opengl.cpp}::GLShadowMap
 
struct  anonymous_namespace{opengl.cpp}::GLShadowCube
 
struct  anonymous_namespace{opengl.cpp}::GLFramebuffer
 
struct  anonymous_namespace{opengl.cpp}::Pipeline
 
struct  anonymous_namespace{opengl.cpp}::RenderList
 
struct  anonymous_namespace{opengl.cpp}::RenderList::Stage
 
struct  anonymous_namespace{opengl.cpp}::RenderList::Stage::Buffer
 
class  anonymous_namespace{opengl.cpp}::OpenGLBackend
 

Namespaces

namespace  anonymous_namespace{opengl.cpp}
 
namespace  nngn
 

Macros

#define P(x)   static_cast<std::size_t>(PipelineConfiguration::Type::x)
 

Enumerations

enum  : u32 {
  anonymous_namespace{opengl.cpp}::LIGHTS_UBO_BINDING , anonymous_namespace{opengl.cpp}::CAMERA_UBO_BINDING , anonymous_namespace{opengl.cpp}::MAIN_TEX_BINDING = 0 , anonymous_namespace{opengl.cpp}::FONT_TEX_BINDING ,
  anonymous_namespace{opengl.cpp}::SHADOW_MAP_TEX_BINDING , anonymous_namespace{opengl.cpp}::SHADOW_CUBE_TEX_BINDING
}
 

Functions

template<>
std::unique_ptr< Graphicsnngn::graphics_create_backend< backend > (const void *params)
 
template<>
std::unique_ptr< Graphicsnngn::graphics_create_backend< backend_es > (const void *params)
 

Variables

static constexpr auto backend = nngn::Graphics::Backend::OPENGL_BACKEND
 
static constexpr auto backend_es = nngn::Graphics::Backend::OPENGL_ES_BACKEND
 
constexpr auto anonymous_namespace{opengl.cpp}::SHADOW_TEX_FORMAT = GL_DEPTH_COMPONENT32F
 
constexpr auto anonymous_namespace{opengl.cpp}::N_PROGRAMS
 

Macro Definition Documentation

◆ P

#define P ( x)    static_cast<std::size_t>(PipelineConfiguration::Type::x)

Variable Documentation

◆ backend

auto backend = nngn::Graphics::Backend::OPENGL_BACKEND
staticconstexpr

◆ backend_es

auto backend_es = nngn::Graphics::Backend::OPENGL_ES_BACKEND
staticconstexpr