CG_Labs 2021.2
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
helpers.cpp File Reference
#include "config.hpp"
#include "helpers.hpp"
#include "core/Log.h"
#include "core/opengl.hpp"
#include "core/various.hpp"
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <glm/gtc/type_ptr.hpp>
#include <imgui.h>
#include <stb_image.h>
#include <array>
#include <cassert>
#include <cstdint>
#include <memory>

Namespaces

namespace  anonymous_namespace{helpers.cpp}
 
namespace  local
 

Functions

void anonymous_namespace{helpers.cpp}::setupBasisData ()
 
void anonymous_namespace{helpers.cpp}::createDebugTexture ()
 
static std::vector< std::uint8_t > getTextureData (std::string const &filename, std::uint32_t &width, std::uint32_t &height, bool flip)
 

Variables

struct { 
 
   GLuint   anonymous_namespace{helpers.cpp}::shader 
 
   GLuint   anonymous_namespace{helpers.cpp}::vao 
 
   GLuint   anonymous_namespace{helpers.cpp}::vbo 
 
   GLuint   anonymous_namespace{helpers.cpp}::ibo 
 
   GLsizei   anonymous_namespace{helpers.cpp}::index_count 
 
   struct anonymous_namespace{helpers.cpp}:: { ... }    anonymous_namespace{helpers.cpp}::shader_locations 
 
anonymous_namespace{helpers.cpp}::basis 
 
GLuint anonymous_namespace{helpers.cpp}::debug_texture_id { 0u }
 
static GLuint local::fullscreen_shader
 
static GLuint local::display_vao
 
static std::array< char const *, 3 > const local::cull_mode_labels
 
static std::array< char const *, 3 > const local::polygon_mode_labels
 

Function Documentation

◆ getTextureData()

static std::vector< std::uint8_t > getTextureData ( std::string const &  filename,
std::uint32_t &  width,
std::uint32_t &  height,
bool  flip 
)
static