glew is now included with the renderer, updated todo

This commit is contained in:
Anselme 2016-02-08 15:42:34 +01:00
parent 080f3f6c53
commit e536a76577
15 changed files with 39847 additions and 84 deletions

View File

@ -3,22 +3,15 @@ cmake_minimum_required(VERSION 2.8)
find_package(OpenGL REQUIRED)
if(WIN32)
set(SYSTEM_LIB_PATH "win32")
set(GLEW_LIB_NAME "glew32")
else(WIN32)
set(SYSTEM_LIB_PATH "linux")
set(GLEW_LIB_NAME "GLEW")
endif(WIN32)
set(LIB_SRC_LIST
src/glew.c
src/sparrowrenderer.cpp
src/framebuffer.cpp
src/meshbuilder.cpp
src/phongmaterial.cpp
src/crappymodule.cpp
src/shader.cpp
src/skyboxmodule.cpp
src/sparrowrenderer.cpp
src/skyboxmodule.cpp
src/parametricmesh.cpp
src/texture.cpp
src/scene.cpp
@ -54,15 +47,7 @@ include_directories(
${INCLUDE_ROOT}
)
find_library(GLEW_LIBRARY
NAMES
${GLEW_LIB_NAME}
PATHS
${LIB_ROOT}
)
target_link_libraries(
${LIBRARY_NAME}
${GLEW_LIBRARY}
${LIBRARY_NAME}
${OPENGL_LIBRARIES}
)

21
features.todo Normal file
View File

@ -0,0 +1,21 @@
basic features :
mipmaps
pipeline class
configurable bloom
instancing
billboards
2D rendering
cubemap framebuffer
point light shadows
dynamic HDR
deferred shading
advanced features :
water shader
ssao
mesh animation

View File

@ -1,56 +0,0 @@
FBOs :
image éclairée
shadowmap
g-buffer
Scene nodes :
geometry : PHONG, NORMAL_MAP, DIFFUSE_TEXTURE, SPECULAR_TEXTURE, ALPHA_MASK
light source : LIGHT, SHADOW_MAP, SHADOW_CUBEMAP
Modules :
- forward (compatible crappy)
IN :
for sources
for geometrie phong
OUT :
image éclairée
- deferred
IN :
gbuffer
for sources
OUT :
image éclairée
- gbuffer
IN :
for geometrie phong
OUT :
gbuffer
- shadowmap
IN :
for géométrie phong
source
OUT :
shadowmap
- post effects
IN :
image éclairée
OUT :
image traitée
futres implémentations ?
- billboard module
- particles module
- text/gui module
- heat wave module
- mirror module
- wave + mirror = water module
- ssao module

View File

@ -3,7 +3,7 @@
#include "module.h"
#include <cstddef>
#include <glew/glew.h>
#include "glew.h"
class CrappyModule : public Module
{

View File

@ -1,10 +1,10 @@
#ifndef FORWARDMODULE_H
#define FORWARDMODULE_H
#include "glew.h"
#include "module.h"
#include <vector>
#include <cstddef>
#include <glew/glew.h>
#include "shadersource.h"
#include "material.h"
#include "framebuffer.h"

View File

@ -1,7 +1,7 @@
#ifndef FRAMEBUFFER_H
#define FRAMEBUFFER_H
#include <glew/glew.h>
#include "glew.h"
#include <vector>
class Texture;

18607
src/glew.c Normal file

File diff suppressed because it is too large Load Diff

19753
src/glew.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
#ifndef MESH_H
#define MESH_H
#include <glew/glew.h>
#include "glew.h"
#include <vector>
#include <glm/vec3.hpp>
#include <glm/vec2.hpp>

View File

@ -1,7 +1,7 @@
#ifndef POSTEFFECTMODULE_H
#define POSTEFFECTMODULE_H
#include <glew/glew.h>
#include "glew.h"
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
#include "module.h"

View File

@ -1,7 +1,7 @@
#ifndef SHADER_H
#define SHADER_H
#include <glew/glew.h>
#include "glew.h"
#include <string>
#include <glm/fwd.hpp>

View File

@ -1,7 +1,7 @@
#ifndef SKYBOXMODULE_H
#define SKYBOXMODULE_H
#include <glew/glew.h>
#include "glew.h"
#include "module.h"
#include <string>

View File

@ -1,7 +1,7 @@
#ifndef TEXTURE_H
#define TEXTURE_H
#include <glew/glew.h>
#include "glew.h"
#include <string>
class Image;

View File

@ -1,7 +1,7 @@
#ifndef TEXTUREBLUR_H
#define TEXTUREBLUR_H
#include <glew/glew.h>
#include "glew.h"
class FrameBuffer;
class Shader;

1453
src/wglew.h Normal file

File diff suppressed because it is too large Load Diff