Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
|
Header containing definitions of classes and functions related to loading and using Texture resources. More...
#include <string>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <nlohmann/json.hpp>
#include "core/resource_database.hpp"
Go to the source code of this file.
Classes | |
struct | ToyMaker::ColorBufferDefinition |
A struct containing the definition of a color buffer, using which similar color buffers can be created. More... | |
class | ToyMaker::Texture |
The class representation of textures on this engine, which are a type of Resource used both within and outside of the engine. More... | |
class | ToyMaker::TextureFromFile |
A resource constructor which loads a texture from a supported image file located via its file path. More... | |
class | ToyMaker::TextureFromColorBufferDefinition |
Generates a texture based on its color buffer definition. More... | |
Namespaces | |
namespace | ToyMaker |
Namespace containing all class definitions and functions related to the ToyMaker engine. | |
Functions | |
GLenum | ToyMaker::deduceInternalFormat (const ColorBufferDefinition &colorBufferDefinition) |
A (quite possibly unnecessary) function to fetch the enum corresponding to the "internalFormat" argument of glTexImage2D based on some color buffer definition. | |
GLenum | ToyMaker::deduceExternalFormat (const ColorBufferDefinition &colorBufferDefinition) |
A (quite possibly unnecessary) function to fetch the enum corresponding to the "format" argument of glTexImage2D based on some color buffer definition. | |
void | ToyMaker::to_json (nlohmann::json &json, const ColorBufferDefinition &colorBufferDefinition) |
void | ToyMaker::from_json (const nlohmann::json &json, ColorBufferDefinition &colorBufferDefinition) |
ToyMaker::NLOHMANN_JSON_SERIALIZE_ENUM (ColorBufferDefinition::CubemapLayout, { {ColorBufferDefinition::CubemapLayout::NA, "na"}, {ColorBufferDefinition::CubemapLayout::ROW, "row"}, }) | |
Header containing definitions of classes and functions related to loading and using Texture resources.