diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 00000000..c08f9add --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1 @@ +_site \ No newline at end of file diff --git a/docs/.ruby-version b/docs/.ruby-version new file mode 100644 index 00000000..860487ca --- /dev/null +++ b/docs/.ruby-version @@ -0,0 +1 @@ +2.7.1 diff --git a/docs/Gemfile b/docs/Gemfile new file mode 100644 index 00000000..e3d07eb7 --- /dev/null +++ b/docs/Gemfile @@ -0,0 +1,7 @@ +source "https://rubygems.org" +ruby RUBY_VERSION + +gem 'github-pages', group: :jekyll_plugins +gem 'nokogiri', ">=1.8.5" + +gem 'wdm', '~> 0.1.0' if Gem.win_platform? \ No newline at end of file diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock new file mode 100644 index 00000000..3942101e --- /dev/null +++ b/docs/Gemfile.lock @@ -0,0 +1,283 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (6.0.4.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.11.1) + colorator (1.1.0) + commonmarker (0.17.13) + ruby-enum (~> 0.5) + concurrent-ruby (1.1.9) + dnsruby (1.61.7) + simpleidn (~> 0.1) + em-websocket (0.5.2) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + ethon (0.14.0) + ffi (>= 1.15.0) + eventmachine (1.2.7) + execjs (2.8.1) + faraday (1.7.1) + faraday-em_http (~> 1.0) + faraday-em_synchrony (~> 1.0) + faraday-excon (~> 1.1) + faraday-httpclient (~> 1.0.1) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.1) + faraday-patron (~> 1.0) + faraday-rack (~> 1.0) + multipart-post (>= 1.2, < 3) + ruby2_keywords (>= 0.0.4) + faraday-em_http (1.0.0) + faraday-em_synchrony (1.0.0) + faraday-excon (1.1.0) + faraday-httpclient (1.0.1) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.2.0) + faraday-patron (1.0.0) + faraday-rack (1.0.0) + ffi (1.15.3) + forwardable-extended (2.6.0) + gemoji (3.0.1) + github-pages (219) + github-pages-health-check (= 1.17.7) + jekyll (= 3.9.0) + jekyll-avatar (= 0.7.0) + jekyll-coffeescript (= 1.1.1) + jekyll-commonmark-ghpages (= 0.1.6) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.15.1) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.13.0) + jekyll-mentions (= 1.6.0) + jekyll-optional-front-matter (= 0.3.2) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.3.0) + jekyll-redirect-from (= 0.16.0) + jekyll-relative-links (= 0.6.1) + jekyll-remote-theme (= 0.4.3) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.7.1) + jekyll-sitemap (= 1.4.0) + jekyll-swiss (= 1.0.0) + jekyll-theme-architect (= 0.2.0) + jekyll-theme-cayman (= 0.2.0) + jekyll-theme-dinky (= 0.2.0) + jekyll-theme-hacker (= 0.2.0) + jekyll-theme-leap-day (= 0.2.0) + jekyll-theme-merlot (= 0.2.0) + jekyll-theme-midnight (= 0.2.0) + jekyll-theme-minimal (= 0.2.0) + jekyll-theme-modernist (= 0.2.0) + jekyll-theme-primer (= 0.6.0) + jekyll-theme-slate (= 0.2.0) + jekyll-theme-tactile (= 0.2.0) + jekyll-theme-time-machine (= 0.2.0) + jekyll-titles-from-headings (= 0.5.3) + jemoji (= 0.12.0) + kramdown (= 2.3.1) + kramdown-parser-gfm (= 1.1.0) + liquid (= 4.0.3) + mercenary (~> 0.3) + minima (= 2.5.1) + nokogiri (>= 1.10.4, < 2.0) + rouge (= 3.26.0) + terminal-table (~> 1.4) + github-pages-health-check (1.17.7) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (~> 4.0) + public_suffix (>= 3.0, < 5.0) + typhoeus (~> 1.3) + html-pipeline (2.14.0) + activesupport (>= 2) + nokogiri (>= 1.4) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.9.0) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (>= 1.17, < 3) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.7.0) + jekyll (>= 3.0, < 5.0) + jekyll-coffeescript (1.1.1) + coffee-script (~> 2.2) + coffee-script-source (~> 1.11.1) + jekyll-commonmark (1.3.1) + commonmarker (~> 0.14) + jekyll (>= 3.7, < 5.0) + jekyll-commonmark-ghpages (0.1.6) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1.2) + rouge (>= 2.0, < 4.0) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.15.1) + jekyll (>= 3.7, < 5.0) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.13.0) + jekyll (>= 3.4, < 5.0) + octokit (~> 4.0, != 4.4.0) + jekyll-mentions (1.6.0) + html-pipeline (~> 2.3) + jekyll (>= 3.7, < 5.0) + jekyll-optional-front-matter (0.3.2) + jekyll (>= 3.0, < 5.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.3.0) + jekyll (>= 3.0, < 5.0) + jekyll-redirect-from (0.16.0) + jekyll (>= 3.3, < 5.0) + jekyll-relative-links (0.6.1) + jekyll (>= 3.3, < 5.0) + jekyll-remote-theme (0.4.3) + addressable (~> 2.0) + jekyll (>= 3.5, < 5.0) + jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) + rubyzip (>= 1.3.0, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.7.1) + jekyll (>= 3.8, < 5.0) + jekyll-sitemap (1.4.0) + jekyll (>= 3.7, < 5.0) + jekyll-swiss (1.0.0) + jekyll-theme-architect (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.6.0) + jekyll (> 3.5, < 5.0) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.3) + jekyll (>= 3.3, < 5.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + jemoji (0.12.0) + gemoji (~> 3.0) + html-pipeline (~> 2.2) + jekyll (>= 3.0, < 5.0) + kramdown (2.3.1) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.3) + listen (3.7.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + mini_portile2 (2.6.1) + minima (2.5.1) + jekyll (>= 3.5, < 5.0) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.14.4) + multipart-post (2.1.1) + nokogiri (1.12.4) + mini_portile2 (~> 2.6.1) + racc (~> 1.4) + octokit (4.21.0) + faraday (>= 0.9) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (4.0.6) + racc (1.5.2) + rb-fsevent (0.11.0) + rb-inotify (0.10.1) + ffi (~> 1.0) + rexml (3.2.5) + rouge (3.26.0) + ruby-enum (0.9.0) + i18n + ruby2_keywords (0.0.5) + rubyzip (2.3.2) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) + simpleidn (0.2.1) + unf (~> 0.1.4) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + thread_safe (0.3.6) + typhoeus (1.4.0) + ethon (>= 0.9.0) + tzinfo (1.2.9) + thread_safe (~> 0.1) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.7) + unicode-display_width (1.7.0) + zeitwerk (2.4.2) + +PLATFORMS + ruby + +DEPENDENCIES + github-pages + nokogiri (>= 1.8.5) + +RUBY VERSION + ruby 2.7.1p83 + +BUNDLED WITH + 2.1.4 diff --git a/docs/README_8md.html b/docs/README_8md.html new file mode 100644 index 00000000..9e8b4bba --- /dev/null +++ b/docs/README_8md.html @@ -0,0 +1,100 @@ + + +
+ + + + +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
▼Nce | |
CTime | |
CTransform | |
CShaderFile | |
CTextureFile | |
CMaterialFile | |
CMeshFile | |
CCamera | |
CMaterial | |
CMesh | |
CRenderEngine | |
CShader | |
CTexture | |
CVertex | |
CWindow | |
▼Nce | |
CTime | |
CTransform | |
CShaderFile | |
CTextureFile | |
CMaterialFile | |
CMeshFile | |
CCamera | |
CMaterial | |
CMesh | |
CRenderEngine | |
CShader | |
CTexture | |
CVertex | |
CWindow |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <string>
#include <vector>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <cinnabar-render/vertex.hpp>
Go to the source code of this file.
++Classes | |
struct | ce::ShaderFile |
struct | ce::TextureFile |
struct | ce::MaterialFile |
struct | ce::MeshFile |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <cinnabar-core/transform.hpp>
#include <cinnabar-render/shader.hpp>
Go to the source code of this file.
++Classes | |
class | ce::Camera |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <string>
Go to the source code of this file.
++Namespaces | |
ce | |
ce::assetManager | |
ce::assetManager::defaults | |
+Functions | |
std::string | ce::assetManager::getTextFile (std::string file, bool mustExist=true) |
+Variables | |
std::string | ce::assetManager::defaults::RESOURCE_FOLDER |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <string>
#include <cinnabar-core/asset_manager.hpp>
#include <cinnabar-render/assets.hpp>
Go to the source code of this file.
++Namespaces | |
ce | |
ce::assetManager | |
ce::assetManager::defaults | |
+Functions | |
ShaderFile | ce::assetManager::getShaderFile (std::string vert, std::string geom, std::string frag) |
ShaderFile | ce::assetManager::getShaderFile (std::string name) |
TextureFile | ce::assetManager::getTextureFile (std::string path) |
void | ce::assetManager::freeTextureFile (TextureFile textureFile) |
MeshFile | ce::assetManager::getMeshFile (std::string path) |
+Variables | |
std::string | ce::assetManager::defaults::SHADER_FOLDER |
std::string | ce::assetManager::defaults::TEXTURE_FOLDER |
std::string | ce::assetManager::defaults::MESH_FOLDER |
std::string | ce::assetManager::defaults::SHADER_MISSING |
std::string | ce::assetManager::defaults::TEXTURE_MISSING |
std::string | ce::assetManager::defaults::MESH_MISSING |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <cinnabar-core/transform.hpp>
#include <cinnabar-render/asset_manager.hpp>
#include <cinnabar-render/assets.hpp>
#include <cinnabar-render/camera.hpp>
#include <cinnabar-render/material.hpp>
#include <cinnabar-render/mesh.hpp>
#include <cinnabar-render/render_engine.hpp>
#include <cinnabar-render/shader.hpp>
#include <cinnabar-render/texture.hpp>
#include <cinnabar-render/window.hpp>
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Camera, including all inherited members.
+Camera() | ce::Camera | |
farClip | ce::Camera | |
fov | ce::Camera | |
getProjection(double aspectRatio) | ce::Camera | inline |
getViewMatrix() | ce::Camera | |
limitPitch() | ce::Camera | |
nearClip | ce::Camera | |
sendToShader(ce::Shader *shader, double aspectRatio) | ce::Camera | |
transform | ce::Camera | |
~Camera() | ce::Camera |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <camera.hpp>
+Public Member Functions | |
Camera () | |
~Camera () | |
glm::mat4 | getViewMatrix () |
glm::mat4 | getProjection (double aspectRatio) |
void | limitPitch () |
void | sendToShader (ce::Shader *shader, double aspectRatio) |
+Public Attributes | |
ce::Transform * | transform |
double | fov |
double | nearClip |
double | farClip |
ce::Camera::Camera | +( | +) | ++ |
ce::Camera::~Camera | +( | +) | ++ |
+
|
+ +inline | +
glm::mat4 ce::Camera::getViewMatrix | +( | +) | ++ |
void ce::Camera::limitPitch | +( | +) | ++ |
void ce::Camera::sendToShader | +( | +ce::Shader * | +shader, | +
+ | + | double | +aspectRatio | +
+ | ) | ++ |
double ce::Camera::farClip | +
double ce::Camera::fov | +
double ce::Camera::nearClip | +
ce::Transform* ce::Camera::transform | +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Material, including all inherited members.
+bind() | ce::Material | |
getShader() | ce::Material | inline |
Material(std::string name, std::map< std::string, std::string > options={}) | ce::Material | inline |
Material(std::string vertName, std::string fragName, std::map< std::string, std::string > options={}) | ce::Material | inline |
Material(std::string vertName, std::string geomName, std::string fragName, std::map< std::string, std::string > options={}) | ce::Material | inline |
Material(Shader *shader) | ce::Material | |
setTexture(std::string texture) | ce::Material | inline |
setTexture(TextureFile texture) | ce::Material | inline |
setTexture(Texture *texture) | ce::Material | inline |
unbind() | ce::Material | |
update() | ce::Material | |
~Material() | ce::Material |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <material.hpp>
+Public Member Functions | |
Material (std::string name, std::map< std::string, std::string > options={}) | |
Material (std::string vertName, std::string fragName, std::map< std::string, std::string > options={}) | |
Material (std::string vertName, std::string geomName, std::string fragName, std::map< std::string, std::string > options={}) | |
Material (Shader *shader) | |
~Material () | |
void | update () |
Shader * | getShader () |
void | setTexture (std::string texture) |
void | setTexture (TextureFile texture) |
void | setTexture (Texture *texture) |
void | bind () |
void | unbind () |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
ce::Material::Material | +( | +Shader * | +shader | ) | ++ |
ce::Material::~Material | +( | +) | ++ |
void ce::Material::bind | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
void ce::Material::unbind | +( | +) | ++ |
void ce::Material::update | +( | +) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Mesh, including all inherited members.
+bind(bool VBO=true, bool EBO=true) | ce::Mesh | |
GetIndexCount() | ce::Mesh | inline |
Mesh() | ce::Mesh | |
Mesh(std::string filename) | ce::Mesh | inline |
Mesh(MeshFile meshfile) | ce::Mesh | inline |
sendToShader(ce::Shader *shader, bool bind=true) | ce::Mesh | |
setMesh(std::string filename) | ce::Mesh | inline |
setMesh(MeshFile meshfile) | ce::Mesh | |
unbind(bool VBO=true, bool EBO=true) | ce::Mesh | |
~Mesh() | ce::Mesh |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <mesh.hpp>
+Public Member Functions | |
Mesh () | |
Mesh (std::string filename) | |
Mesh (MeshFile meshfile) | |
~Mesh () | |
void | setMesh (std::string filename) |
void | setMesh (MeshFile meshfile) |
void | sendToShader (ce::Shader *shader, bool bind=true) |
size_t | GetIndexCount () |
void | bind (bool VBO=true, bool EBO=true) |
void | unbind (bool VBO=true, bool EBO=true) |
ce::Mesh::Mesh | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
ce::Mesh::~Mesh | +( | +) | ++ |
void ce::Mesh::bind | +( | +bool | +VBO = true , |
+
+ | + | bool | +EBO = true |
+
+ | ) | ++ |
+
|
+ +inline | +
void ce::Mesh::sendToShader | +( | +ce::Shader * | +shader, | +
+ | + | bool | +bind = true |
+
+ | ) | ++ |
void ce::Mesh::setMesh | +( | +MeshFile | +meshfile | ) | ++ |
+
|
+ +inline | +
void ce::Mesh::unbind | +( | +bool | +VBO = true , |
+
+ | + | bool | +EBO = true |
+
+ | ) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::RenderEngine, including all inherited members.
+clear() | ce::RenderEngine | |
getAspectRatio() | ce::RenderEngine | inline |
render(Mesh *mesh, Material *material, Transform *transform, Camera *camera) | ce::RenderEngine | |
RenderEngine(glm::vec4 clearColor=glm::vec4()) | ce::RenderEngine | |
setClearColor(glm::vec4 color) | ce::RenderEngine | |
setSize(glm::vec2 size) | ce::RenderEngine | |
~RenderEngine() | ce::RenderEngine |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <render_engine.hpp>
+Public Member Functions | |
RenderEngine (glm::vec4 clearColor=glm::vec4()) | |
~RenderEngine () | |
void | setSize (glm::vec2 size) |
void | setClearColor (glm::vec4 color) |
double | getAspectRatio () |
void | clear () |
void | render (Mesh *mesh, Material *material, Transform *transform, Camera *camera) |
ce::RenderEngine::RenderEngine | +( | +glm::vec4 | +clearColor = glm::vec4() | ) | ++ |
ce::RenderEngine::~RenderEngine | +( | +) | ++ |
void ce::RenderEngine::clear | +( | +) | ++ |
+
|
+ +inline | +
void ce::RenderEngine::render | +( | +Mesh * | +mesh, | +
+ | + | Material * | +material, | +
+ | + | Transform * | +transform, | +
+ | + | Camera * | +camera | +
+ | ) | ++ |
void ce::RenderEngine::setClearColor | +( | +glm::vec4 | +color | ) | ++ |
void ce::RenderEngine::setSize | +( | +glm::vec2 | +size | ) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Shader, including all inherited members.
+Attribute enum name | ce::Shader | |
bind() | ce::Shader | |
getAttribLocation(const std::string name) | ce::Shader | |
getShader() | ce::Shader | |
getUniformLocation(const std::string name) | ce::Shader | |
setUniform(const std::string name, T value) | ce::Shader | |
setUniform(GLint location, T value) | ce::Shader | |
setUniform(const std::string name, float x, float y) | ce::Shader | |
setUniform(const std::string name, float x, float y, float z) | ce::Shader | |
setUniform(const std::string name, float x, float y, float z, float w) | ce::Shader | |
setUniform(GLint location, float x, float y) | ce::Shader | |
setUniform(GLint location, float x, float y, float z) | ce::Shader | |
setUniform(GLint location, float x, float y, float z, float w) | ce::Shader | |
Shader(std::string name, std::map< std::string, std::string > options={}) | ce::Shader | inline |
Shader(std::string vertName, std::string fragName, std::map< std::string, std::string > options={}) | ce::Shader | inline |
Shader(std::string vertName, std::string geoName, std::string fragName, std::map< std::string, std::string > options={}) | ce::Shader | |
unbind() | ce::Shader | |
vertexAttribPointer(std::string attrib, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) | ce::Shader | |
vertexAttribPointer(Attribute attrib, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) | ce::Shader | |
~Shader() | ce::Shader |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <shader.hpp>
+Public Types | |
enum class | Attribute { POSITION +, NORMAL +, UV +, COLOR + } |
+Public Member Functions | |
Shader (std::string name, std::map< std::string, std::string > options={}) | |
Shader (std::string vertName, std::string fragName, std::map< std::string, std::string > options={}) | |
Shader (std::string vertName, std::string geoName, std::string fragName, std::map< std::string, std::string > options={}) | |
~Shader () | |
void | bind () |
void | unbind () |
GLuint | getShader () |
GLint | getAttribLocation (const std::string name) |
GLint | getUniformLocation (const std::string name) |
void | vertexAttribPointer (std::string attrib, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) |
void | vertexAttribPointer (Attribute attrib, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) |
template<typename T > | |
void | setUniform (const std::string name, T value) |
template<typename T > | |
void | setUniform (GLint location, T value) |
void | setUniform (const std::string name, float x, float y) |
void | setUniform (const std::string name, float x, float y, float z) |
void | setUniform (const std::string name, float x, float y, float z, float w) |
void | setUniform (GLint location, float x, float y) |
void | setUniform (GLint location, float x, float y, float z) |
void | setUniform (GLint location, float x, float y, float z, float w) |
+
|
+ +strong | +
+
|
+ +inline | +
+
|
+ +inline | +
ce::Shader::Shader | +( | +std::string | +vertName, | +
+ | + | std::string | +geoName, | +
+ | + | std::string | +fragName, | +
+ | + | std::map< std::string, std::string > | +options = {} |
+
+ | ) | ++ |
ce::Shader::~Shader | +( | +) | ++ |
void ce::Shader::bind | +( | +) | ++ |
GLint ce::Shader::getAttribLocation | +( | +const std::string | +name | ) | ++ |
GLuint ce::Shader::getShader | +( | +) | ++ |
GLint ce::Shader::getUniformLocation | +( | +const std::string | +name | ) | ++ |
void ce::Shader::setUniform | +( | +const std::string | +name, | +
+ | + | float | +x, | +
+ | + | float | +y | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +const std::string | +name, | +
+ | + | float | +x, | +
+ | + | float | +y, | +
+ | + | float | +z | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +const std::string | +name, | +
+ | + | float | +x, | +
+ | + | float | +y, | +
+ | + | float | +z, | +
+ | + | float | +w | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +const std::string | +name, | +
+ | + | T | +value | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +GLint | +location, | +
+ | + | float | +x, | +
+ | + | float | +y | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +GLint | +location, | +
+ | + | float | +x, | +
+ | + | float | +y, | +
+ | + | float | +z | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +GLint | +location, | +
+ | + | float | +x, | +
+ | + | float | +y, | +
+ | + | float | +z, | +
+ | + | float | +w | +
+ | ) | ++ |
void ce::Shader::setUniform | +( | +GLint | +location, | +
+ | + | T | +value | +
+ | ) | ++ |
void ce::Shader::unbind | +( | +) | ++ |
void ce::Shader::vertexAttribPointer | +( | +Attribute | +attrib, | +
+ | + | GLint | +size, | +
+ | + | GLenum | +type, | +
+ | + | GLboolean | +normalized, | +
+ | + | GLsizei | +stride, | +
+ | + | const void * | +pointer | +
+ | ) | ++ |
void ce::Shader::vertexAttribPointer | +( | +std::string | +attrib, | +
+ | + | GLint | +size, | +
+ | + | GLenum | +type, | +
+ | + | GLboolean | +normalized, | +
+ | + | GLsizei | +stride, | +
+ | + | const void * | +pointer | +
+ | ) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Texture, including all inherited members.
+activate(int slot) | ce::Texture | |
bind() | ce::Texture | |
Texture(std::string filename, GLenum type=GL_TEXTURE_2D) | ce::Texture | inline |
Texture(TextureFile textureFile, GLenum type=GL_TEXTURE_2D) | ce::Texture | |
Texture(const void *data, GLsizei width, GLsizei height, GLenum color_space=GL_RGBA, GLenum type=GL_TEXTURE_2D) | ce::Texture | |
unbind() | ce::Texture | |
~Texture() | ce::Texture |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <texture.hpp>
+Public Member Functions | |
Texture (std::string filename, GLenum type=GL_TEXTURE_2D) | |
Texture (TextureFile textureFile, GLenum type=GL_TEXTURE_2D) | |
Texture (const void *data, GLsizei width, GLsizei height, GLenum color_space=GL_RGBA, GLenum type=GL_TEXTURE_2D) | |
~Texture () | |
void | bind () |
void | unbind () |
void | activate (int slot) |
+
|
+ +inline | +
ce::Texture::Texture | +( | +TextureFile | +textureFile, | +
+ | + | GLenum | +type = GL_TEXTURE_2D |
+
+ | ) | ++ |
ce::Texture::Texture | +( | +const void * | +data, | +
+ | + | GLsizei | +width, | +
+ | + | GLsizei | +height, | +
+ | + | GLenum | +color_space = GL_RGBA , |
+
+ | + | GLenum | +type = GL_TEXTURE_2D |
+
+ | ) | ++ |
ce::Texture::~Texture | +( | +) | ++ |
void ce::Texture::activate | +( | +int | +slot | ) | ++ |
void ce::Texture::bind | +( | +) | ++ |
void ce::Texture::unbind | +( | +) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Time, including all inherited members.
+getDeltaTime() | ce::Time | inline |
getFPS() | ce::Time | inline |
recalculate(bool dt=true, bool fps=true) | ce::Time | |
Time() | ce::Time | |
update(bool dt=true, bool fps=true) | ce::Time | |
waitUntilDelta(double dt) | ce::Time | |
~Time() | ce::Time |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <time.hpp>
+Public Member Functions | |
Time () | |
Construct a new Time object. More... | |
~Time () | |
void | recalculate (bool dt=true, bool fps=true) |
Calculates the FPS and DeltaTime. More... | |
void | update (bool dt=true, bool fps=true) |
Updates the FPS and DeltaTime and makes a GameTick. More... | |
void | waitUntilDelta (double dt) |
Wait until delta reches a certain values. More... | |
double | getDeltaTime () |
Get the Delta Time. More... | |
double | getFPS () |
Get the FPS. More... | |
ce::Time::Time | +( | +) | ++ |
Construct a new Time object.
+ +ce::Time::~Time | +( | +) | ++ |
+
|
+ +inline | +
Get the Delta Time.
+
+
|
+ +inline | +
void ce::Time::recalculate | +( | +bool | +dt = true , |
+
+ | + | bool | +fps = true |
+
+ | ) | ++ |
Calculates the FPS and DeltaTime.
+dt | weather to calculate the DeltaTime |
fps | weather to calculate the FPS |
void ce::Time::update | +( | +bool | +dt = true , |
+
+ | + | bool | +fps = true |
+
+ | ) | ++ |
Updates the FPS and DeltaTime and makes a GameTick.
+dt | weather to calculate the DeltaTime |
fps | weather to calculate the FPS |
void ce::Time::waitUntilDelta | +( | +double | +dt | ) | ++ |
Wait until delta reches a certain values.
+dt | value to wait for |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Transform, including all inherited members.
+getForward(bool useYaw=true, bool usePitch=true, bool useRoll=true) | ce::Transform | |
GetGlobalUp() | ce::Transform | inlinestatic |
getMatrix() | ce::Transform | |
getParent() | ce::Transform | inline |
getPitch() | ce::Transform | inline |
getPosition() | ce::Transform | inline |
getRight(bool useYaw=true, bool usePitch=true, bool useRoll=true) | ce::Transform | |
getRoll() | ce::Transform | inline |
getRotation() | ce::Transform | inline |
getScale() | ce::Transform | inline |
getUp(bool useYaw=true, bool usePitch=true, bool useRoll=true) | ce::Transform | |
getYaw() | ce::Transform | inline |
pitch(float delta) | ce::Transform | inline |
roll(float delta) | ce::Transform | inline |
rotate(glm::vec3 delta) | ce::Transform | inline |
rotate(float x, float y, float z) | ce::Transform | inline |
scale(glm::vec3 delta) | ce::Transform | inline |
scale(float x, float y, float z) | ce::Transform | inline |
scale(float a) | ce::Transform | inline |
setParent(Transform *parent) | ce::Transform | inline |
setPitch(float pitch) | ce::Transform | inline |
setPosition(glm::vec3 pos) | ce::Transform | inline |
setPosition(float x, float y, float z) | ce::Transform | inline |
setRoll(float roll) | ce::Transform | inline |
setRotation(glm::vec3 rot) | ce::Transform | inline |
setRotation(float x, float y, float z) | ce::Transform | inline |
setScale(glm::vec3 scale) | ce::Transform | inline |
setScale(float x, float y, float z) | ce::Transform | inline |
setScale(float a) | ce::Transform | inline |
setYaw(float yaw) | ce::Transform | inline |
Transform() | ce::Transform | |
translate(glm::vec3 delta) | ce::Transform | inline |
translate(float x, float y, float z) | ce::Transform | inline |
yaw(float delta) | ce::Transform | inline |
~Transform() | ce::Transform |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <transform.hpp>
+Public Member Functions | |
Transform () | |
Construct a new Transform object. More... | |
~Transform () | |
Destroy the Transform object. More... | |
Transform * | getParent () |
Get the Parent Tranform object. More... | |
void | setParent (Transform *parent) |
Set the Parent Transform object. More... | |
glm::vec3 | getPosition () |
Get the Position of the transform. More... | |
void | setPosition (glm::vec3 pos) |
Set the Position of the transform. More... | |
void | setPosition (float x, float y, float z) |
Set the Position of the transform. More... | |
void | translate (glm::vec3 delta) |
Translate (or move) the transform. More... | |
void | translate (float x, float y, float z) |
Translate or move the transform by and X,Y,Z amount. More... | |
void | setPitch (float pitch) |
Set the Pitch of the transfomr. More... | |
void | pitch (float delta) |
Rotate the transform's pitch. More... | |
float | getPitch () |
Get the Pitch of the transform. More... | |
void | setYaw (float yaw) |
Set the Yaw of the transform. More... | |
void | yaw (float delta) |
Rotate the transform's Yaw. More... | |
float | getYaw () |
Get the Yaw of the transform. More... | |
void | setRoll (float roll) |
Set the Roll of the transform. More... | |
void | roll (float delta) |
Rotate the transform's Roll. More... | |
float | getRoll () |
Get the Roll of the transform. More... | |
glm::vec3 | getRotation () |
Get the Rotation of the transform. More... | |
void | setRotation (glm::vec3 rot) |
Set the Rotation of the transform. More... | |
void | setRotation (float x, float y, float z) |
Set the Rotation of the transform. More... | |
void | rotate (glm::vec3 delta) |
Rotate the transform by an amount. More... | |
void | rotate (float x, float y, float z) |
Rotate the transform by an amount. More... | |
glm::vec3 | getScale () |
Get the Scale of the transform. More... | |
void | setScale (glm::vec3 scale) |
Set the Scale of the transform. More... | |
void | setScale (float x, float y, float z) |
Set the Scale object via X,Y,Z. More... | |
void | setScale (float a) |
Evenly set the Scale of the transform. More... | |
void | scale (glm::vec3 delta) |
Scale the transform via x,y,z. More... | |
void | scale (float x, float y, float z) |
Scale the transform by X,Y,Z. More... | |
void | scale (float a) |
Evenly scale the transform. More... | |
glm::mat4 | getMatrix () |
Get the Trasnform Matrix. More... | |
glm::vec3 | getForward (bool useYaw=true, bool usePitch=true, bool useRoll=true) |
Get transform's Forward vector. More... | |
glm::vec3 | getRight (bool useYaw=true, bool usePitch=true, bool useRoll=true) |
Get transform's Right vector. More... | |
glm::vec3 | getUp (bool useYaw=true, bool usePitch=true, bool useRoll=true) |
Get transform's Up vector. More... | |
+Static Public Member Functions | |
static glm::vec3 | GetGlobalUp () |
Get a Vector globally pointing Upwards Global Up. More... | |
ce::Transform::Transform | +( | +) | ++ |
Construct a new Transform object.
+ +ce::Transform::~Transform | +( | +) | ++ |
Destroy the Transform object.
+ +glm::vec3 ce::Transform::getForward | +( | +bool | +useYaw = true , |
+
+ | + | bool | +usePitch = true , |
+
+ | + | bool | +useRoll = true |
+
+ | ) | ++ |
Get transform's Forward vector.
+useYaw | |
usePitch | |
useRoll |
+
|
+ +inlinestatic | +
Get a Vector globally pointing Upwards Global Up.
+glm::mat4 ce::Transform::getMatrix | +( | +) | ++ |
Get the Trasnform Matrix.
+
+
|
+ +inline | +
Get the Parent Tranform object.
+
+
|
+ +inline | +
Get the Pitch of the transform.
+
+
|
+ +inline | +
Get the Position of the transform.
+glm::vec3 ce::Transform::getRight | +( | +bool | +useYaw = true , |
+
+ | + | bool | +usePitch = true , |
+
+ | + | bool | +useRoll = true |
+
+ | ) | ++ |
Get transform's Right vector.
+useYaw | |
usePitch | |
useRoll |
+
|
+ +inline | +
Get the Roll of the transform.
+
+
|
+ +inline | +
Get the Rotation of the transform.
+
+
|
+ +inline | +
Get the Scale of the transform.
+glm::vec3 ce::Transform::getUp | +( | +bool | +useYaw = true , |
+
+ | + | bool | +usePitch = true , |
+
+ | + | bool | +useRoll = true |
+
+ | ) | ++ |
Get transform's Up vector.
+useYaw | |
usePitch | |
useRoll |
+
|
+ +inline | +
Get the Yaw of the transform.
+
+
|
+ +inline | +
Rotate the transform's pitch.
+delta |
+
|
+ +inline | +
Rotate the transform's Roll.
+delta |
+
|
+ +inline | +
Rotate the transform by an amount.
+x | Pitch |
y | Yaw |
z | Roll |
+
|
+ +inline | +
Rotate the transform by an amount.
+delta |
+
|
+ +inline | +
Evenly scale the transform.
+a |
+
|
+ +inline | +
Scale the transform by X,Y,Z.
+x | |
y | |
z |
+
|
+ +inline | +
Scale the transform via x,y,z.
+delta |
+
|
+ +inline | +
Set the Parent Transform object.
+parent |
+
|
+ +inline | +
Set the Pitch of the transfomr.
+pitch |
+
|
+ +inline | +
Set the Position of the transform.
+x | New X position |
y | New Y position |
z | New Z position |
+
|
+ +inline | +
Set the Position of the transform.
+pos | New Position |
+
|
+ +inline | +
Set the Roll of the transform.
+roll |
+
|
+ +inline | +
Set the Rotation of the transform.
+x | Pitch |
y | Yaw |
z | Roll |
+
|
+ +inline | +
Set the Rotation of the transform.
+rot |
+
|
+ +inline | +
Evenly set the Scale of the transform.
+a | Scale amount |
+
|
+ +inline | +
Set the Scale object via X,Y,Z.
+x | |
y | |
z |
+
|
+ +inline | +
Set the Scale of the transform.
+scale |
+
|
+ +inline | +
Set the Yaw of the transform.
+yaw |
+
|
+ +inline | +
Translate or move the transform by and X,Y,Z amount.
+x | X delta |
y | Y delta |
z | Z delta |
+
|
+ +inline | +
Translate (or move) the transform.
+delta | the amount to move by |
+
|
+ +inline | +
Rotate the transform's Yaw.
+delta |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Window, including all inherited members.
+getAspectRatio() | ce::Window | |
getContext() | ce::Window | inline |
getWindow() | ce::Window | inline |
getWindowSize() | ce::Window | |
mouseVisible() | ce::Window | inlinestatic |
setMouseVisibility(bool enabled) | ce::Window | static |
swapBuffers() | ce::Window | |
Window(const char *title) | ce::Window | |
~Window() | ce::Window |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <window.hpp>
+Public Member Functions | |
Window (const char *title) | |
~Window () | |
void | swapBuffers () |
SDL_Window * | getWindow () |
SDL_GLContext | getContext () |
glm::vec2 | getWindowSize () |
float | getAspectRatio () |
+Static Public Member Functions | |
static bool | mouseVisible () |
static void | setMouseVisibility (bool enabled) |
ce::Window::Window | +( | +const char * | +title | ) | ++ |
ce::Window::~Window | +( | +) | ++ |
float ce::Window::getAspectRatio | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
glm::vec2 ce::Window::getWindowSize | +( | +) | ++ |
+
|
+ +inlinestatic | +
+
|
+ +static | +
void ce::Window::swapBuffers | +( | +) | ++ |
Files | |
file | main.cpp |
file | main.cpp |
Files | |
file | asset_manager.hpp [code] |
file | cinnabar-render/asset_manager.hpp [code] |
file | assets.hpp [code] |
file | assets.hpp [code] |
file | camera.hpp [code] |
file | camera.hpp [code] |
file | cinnabar-render.hpp [code] |
file | cinnabar-render.hpp [code] |
file | material.hpp [code] |
file | material.hpp [code] |
file | mesh.hpp [code] |
file | mesh.hpp [code] |
file | render_engine.hpp [code] |
file | render_engine.hpp [code] |
file | shader.hpp [code] |
file | shader.hpp [code] |
file | texture.hpp [code] |
file | texture.hpp [code] |
file | vertex.hpp [code] |
file | vertex.hpp [code] |
file | window.hpp [code] |
file | window.hpp [code] |
Files | |
file | asset_manager.hpp [code] |
file | cinnabar-core/asset_manager.hpp [code] |
file | time.hpp [code] |
file | time.hpp [code] |
file | tpnt_log.h [code] |
file | tpnt_log.h [code] |
file | transform.hpp [code] |
file | transform.hpp [code] |
▼ include | |||||||
▼ cinnabar-core | |||||||
asset_manager.hpp | |||||||
time.hpp | |||||||
tpnt_log.h | |||||||
transform.hpp | |||||||
▼ cinnabar-render | |||||||
asset_manager.hpp | |||||||
assets.hpp | |||||||
camera.hpp | |||||||
cinnabar-render.hpp | |||||||
material.hpp | |||||||
mesh.hpp | |||||||
render_engine.hpp | |||||||
shader.hpp | |||||||
texture.hpp | |||||||
vertex.hpp | |||||||
window.hpp | |||||||
▼ src | |||||||
▼ cinnabar-render-demo | |||||||
main.cpp |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <iostream>
#include <glm/glm.hpp>
#include <cinnabar-core/time.hpp>
#include <cinnabar-core/tpnt_log.h>
#include <cinnabar-render/cinnabar-render.hpp>
+Functions | |
int | main (int argc, char *argv[]) |
int main | +( | +int | +argc, | +
+ | + | char * | +argv[] | +
+ | ) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <glm/glm.hpp>
#include <cinnabar-render/asset_manager.hpp>
#include <cinnabar-render/shader.hpp>
#include <cinnabar-render/texture.hpp>
Go to the source code of this file.
++Classes | |
class | ce::Material |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <GL/glew.h>
#include <cinnabar-render/asset_manager.hpp>
#include <cinnabar-render/shader.hpp>
#include <cinnabar-render/vertex.hpp>
Go to the source code of this file.
++Classes | |
class | ce::Mesh |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+Namespaces | |
assetManager | |
+Classes | |
class | Time |
class | Transform |
struct | ShaderFile |
struct | TextureFile |
struct | MaterialFile |
struct | MeshFile |
class | Camera |
class | Material |
class | Mesh |
class | RenderEngine |
class | Shader |
class | Texture |
struct | Vertex |
class | Window |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+Namespaces | |
defaults | |
+Functions | |
std::string | getTextFile (std::string file, bool mustExist=true) |
ShaderFile | getShaderFile (std::string vert, std::string geom, std::string frag) |
ShaderFile | getShaderFile (std::string name) |
TextureFile | getTextureFile (std::string path) |
void | freeTextureFile (TextureFile textureFile) |
MeshFile | getMeshFile (std::string path) |
void ce::assetManager::freeTextureFile | +( | +TextureFile | +textureFile | ) | ++ |
MeshFile ce::assetManager::getMeshFile | +( | +std::string | +path | ) | ++ |
+
|
+ +inline | +
ShaderFile ce::assetManager::getShaderFile | +( | +std::string | +vert, | +
+ | + | std::string | +geom, | +
+ | + | std::string | +frag | +
+ | ) | ++ |
std::string ce::assetManager::getTextFile | +( | +std::string | +file, | +
+ | + | bool | +mustExist = true |
+
+ | ) | ++ |
TextureFile ce::assetManager::getTextureFile | +( | +std::string | +path | ) | ++ |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+Variables | |
std::string | RESOURCE_FOLDER |
std::string | SHADER_FOLDER |
std::string | TEXTURE_FOLDER |
std::string | MESH_FOLDER |
std::string | SHADER_MISSING |
std::string | TEXTURE_MISSING |
std::string | MESH_MISSING |
std::string ce::assetManager::defaults::MESH_FOLDER | +
std::string ce::assetManager::defaults::MESH_MISSING | +
+
|
+ +extern | +
+
|
+ +extern | +
std::string ce::assetManager::defaults::SHADER_MISSING | +
std::string ce::assetManager::defaults::TEXTURE_FOLDER | +
std::string ce::assetManager::defaults::TEXTURE_MISSING | +
▼Nce | |
▼NassetManager | |
Ndefaults | |
CTime | |
CTransform | |
CShaderFile | |
CTextureFile | |
CMaterialFile | |
CMeshFile | |
CCamera | |
CMaterial | |
CMesh | |
CRenderEngine | |
CShader | |
CTexture | |
CVertex | |
CWindow | |
▼Nce | |
▼NassetManager | |
Ndefaults | |
CTime | |
CTransform | |
CShaderFile | |
CTextureFile | |
CMaterialFile | |
CMeshFile | |
CCamera | |
CMaterial | |
CMesh | |
CRenderEngine | |
CShader | |
CTexture | |
CVertex | |
CWindow |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <vector>
#include <cinnabar-core/transform.hpp>
#include <cinnabar-render/camera.hpp>
#include <cinnabar-render/material.hpp>
#include <cinnabar-render/mesh.hpp>
#include <cinnabar-render/window.hpp>
Go to the source code of this file.
++Classes | |
class | ce::RenderEngine |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <algorithm>
#include <map>
#include <string>
#include <vector>
#include <glm/glm.hpp>
#include <GL/glew.h>
#include <cinnabar-render/assets.hpp>
Go to the source code of this file.
++Classes | |
class | ce::Shader |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::MaterialFile, including all inherited members.
+ambient | ce::MaterialFile | |
diffuse | ce::MaterialFile | |
diffuseTex | ce::MaterialFile | |
shader | ce::MaterialFile | |
speclular | ce::MaterialFile | |
specularTex | ce::MaterialFile |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <assets.hpp>
+Public Attributes | |
glm::vec4 | ambient = glm::vec4(0.0f) |
glm::vec4 | diffuse = glm::vec4(0.0f) |
glm::vec4 | speclular = glm::vec4(0.0f) |
std::string | diffuseTex = "missing.png" |
std::string | specularTex = "missing.png" |
std::string | shader = NULL |
glm::vec4 ce::MaterialFile::ambient = glm::vec4(0.0f) | +
glm::vec4 ce::MaterialFile::diffuse = glm::vec4(0.0f) | +
std::string ce::MaterialFile::diffuseTex = "missing.png" | +
std::string ce::MaterialFile::shader = NULL | +
glm::vec4 ce::MaterialFile::speclular = glm::vec4(0.0f) | +
std::string ce::MaterialFile::specularTex = "missing.png" | +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::MeshFile, including all inherited members.
+indices | ce::MeshFile | |
verts | ce::MeshFile |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <assets.hpp>
+Public Attributes | |
std::vector< Vertex > | verts = {} |
std::vector< GLuint > | indices = {} |
std::vector<GLuint> ce::MeshFile::indices = {} | +
std::vector<Vertex> ce::MeshFile::verts = {} | +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::ShaderFile, including all inherited members.
+frag | ce::ShaderFile | |
geom | ce::ShaderFile | |
vert | ce::ShaderFile |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <assets.hpp>
+Public Attributes | |
std::string | vert = "" |
std::string | geom = "" |
std::string | frag = "" |
std::string ce::ShaderFile::frag = "" | +
std::string ce::ShaderFile::geom = "" | +
std::string ce::ShaderFile::vert = "" | +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::TextureFile, including all inherited members.
+channelCount | ce::TextureFile | |
data | ce::TextureFile | |
height | ce::TextureFile | |
width | ce::TextureFile |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <assets.hpp>
+Public Attributes | |
unsigned char * | data = NULL |
int | width = 0 |
int | height = 0 |
int | channelCount = 0 |
int ce::TextureFile::channelCount = 0 | +
unsigned char* ce::TextureFile::data = NULL | +
int ce::TextureFile::height = 0 | +
int ce::TextureFile::width = 0 | +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
This is the complete list of members for ce::Vertex, including all inherited members.
+color | ce::Vertex | |
normal | ce::Vertex | |
position | ce::Vertex | |
uv | ce::Vertex |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <vertex.hpp>
+Public Attributes | |
glm::vec3 | position |
glm::vec3 | normal |
glm::vec2 | uv = glm::vec2(0.0f, 0.0f) |
glm::vec4 | color = glm::vec4(1.0f, 1.0f, 1.0f, 1.0f) |
glm::vec4 ce::Vertex::color = glm::vec4(1.0f, 1.0f, 1.0f, 1.0f) | +
glm::vec3 ce::Vertex::normal | +
glm::vec3 ce::Vertex::position | +
glm::vec2 ce::Vertex::uv = glm::vec2(0.0f, 0.0f) | +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
++Macros | |
#define | TPNT_LOGGER_FORMAT "[%s][%s:%d|%s]: " |
#define | TPNT_LOGGER_FILE strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__ |
#define | TPNT_LOGGER_CONTEXT TPNT_LOGGER_FILE, __LINE__, __FUNCTION__ |
#define | TPNT_LOG(LOGTYPE, ...) |
#define | TPNT_LOG_RESET "\033[0m" |
#define | TPNT_LOG_SUCCESS "\033[1;32m" |
#define | TPNT_LOG_WARN "\033[1;33m" |
#define | TPNT_LOG_ERROR "\033[1;31m" |
#define | LOG_INFO(...) TPNT_LOG("INFO", __VA_ARGS__) |
#define | LOG_WARN(...) TPNT_LOG(TPNT_LOG_WARN "WARN" TPNT_LOG_RESET, __VA_ARGS__) |
#define | LOG_ERROR(...) TPNT_LOG(TPNT_LOG_ERROR "ERROR" TPNT_LOG_RESET, __VA_ARGS__) |
#define | LOG_SUCCESS(...) TPNT_LOG(TPNT_LOG_SUCCESS "SUCCESS" TPNT_LOG_RESET, __VA_ARGS__) |
#define LOG_ERROR | +( | ++ | ... | ) | +TPNT_LOG(TPNT_LOG_ERROR "ERROR" TPNT_LOG_RESET, __VA_ARGS__) | +
#define LOG_INFO | +( | ++ | ... | ) | +TPNT_LOG("INFO", __VA_ARGS__) | +
#define LOG_SUCCESS | +( | ++ | ... | ) | +TPNT_LOG(TPNT_LOG_SUCCESS "SUCCESS" TPNT_LOG_RESET, __VA_ARGS__) | +
#define LOG_WARN | +( | ++ | ... | ) | +TPNT_LOG(TPNT_LOG_WARN "WARN" TPNT_LOG_RESET, __VA_ARGS__) | +
#define TPNT_LOG | +( | ++ | LOGTYPE, | +
+ | + | + | ... | +
+ | ) | ++ |
#define TPNT_LOG_ERROR "\033[1;31m" | +
#define TPNT_LOG_RESET "\033[0m" | +
#define TPNT_LOG_SUCCESS "\033[1;32m" | +
#define TPNT_LOG_WARN "\033[1;33m" | +
#define TPNT_LOGGER_CONTEXT TPNT_LOGGER_FILE, __LINE__, __FUNCTION__ | +
#define TPNT_LOGGER_FILE strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__ | +
#define TPNT_LOGGER_FORMAT "[%s][%s:%d|%s]: " | +
Tumpnt Logger Author: Cameron Trow tumbl, edited by SArpnt Source: egam er@gm ail. comhttps://github.com/Tumpnt/TumpntAudio/blob/master/src/core/ta_log.h
+Example Usage
+int main() { LOG_INFO("Hello World"); return 0; }
+Output: [INFO][main.cpp:3|main]: Hello World
+ +
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <glm/glm.hpp>
Go to the source code of this file.
++Classes | |
class | ce::Transform |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <glm/glm.hpp>
Go to the source code of this file.
++Classes | |
struct | ce::Vertex |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+
#include <SDL.h>
#include <glm/glm.hpp>
Go to the source code of this file.
++Classes | |
class | ce::Window |
+Namespaces | |
ce | |
+ Cinnabar
+ 0.0
+
+ Modular Game Engine
+ |
+