Tramway SDK
Classes | Namespaces | Functions | Variables
shader.cpp File Reference
#include <cassert>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#include <config.h>
#include <GL/gl.h>
#include <GLES3/gl3.h>
#include <framework/logging.h>
#include <platform/file.h>
#include <render/opengl/renderer.h>

Classes

struct  tram::Render::API::VertexShader
 
struct  tram::Render::API::FragmentShader
 
struct  tram::Render::API::LinkedShader
 

Namespaces

namespace  tram
 
namespace  tram::Render
 
namespace  tram::Render::API
 

Functions

uint32_t tram::Render::API::LoadVertexShader (name_t name)
 
uint32_t tram::Render::API::LoadFragmentShader (name_t name)
 
uint32_t tram::Render::API::LinkShader (uint32_t vertex_shader, uint32_t fragment_shader)
 
void tram::Render::API::BindTextures (uint32_t shader)
 
void tram::Render::API::BindUniformBlock (const char *name, uint32_t binding)
 
void tram::Render::API::RegisterShader (vertexformat_t format, materialtype_t type, const char *vertex_shader, const char *fragment_shader)
 
uint32_t tram::Render::API::FindShader (vertexformat_t format, materialtype_t type)
 
void tram::Render::API::CompileShaders ()
 

Variables

const char * tram::Render::API::shader_path = "shaders/gles3/"