glew is now included with the renderer, updated todo
This commit is contained in:
parent
080f3f6c53
commit
e536a76577
@ -3,22 +3,15 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
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
|
set(LIB_SRC_LIST
|
||||||
|
src/glew.c
|
||||||
|
src/sparrowrenderer.cpp
|
||||||
src/framebuffer.cpp
|
src/framebuffer.cpp
|
||||||
src/meshbuilder.cpp
|
src/meshbuilder.cpp
|
||||||
src/phongmaterial.cpp
|
src/phongmaterial.cpp
|
||||||
src/crappymodule.cpp
|
src/crappymodule.cpp
|
||||||
src/shader.cpp
|
src/shader.cpp
|
||||||
src/skyboxmodule.cpp
|
src/skyboxmodule.cpp
|
||||||
src/sparrowrenderer.cpp
|
|
||||||
src/parametricmesh.cpp
|
src/parametricmesh.cpp
|
||||||
src/texture.cpp
|
src/texture.cpp
|
||||||
src/scene.cpp
|
src/scene.cpp
|
||||||
@ -54,15 +47,7 @@ include_directories(
|
|||||||
${INCLUDE_ROOT}
|
${INCLUDE_ROOT}
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(GLEW_LIBRARY
|
|
||||||
NAMES
|
|
||||||
${GLEW_LIB_NAME}
|
|
||||||
PATHS
|
|
||||||
${LIB_ROOT}
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${LIBRARY_NAME}
|
${LIBRARY_NAME}
|
||||||
${GLEW_LIBRARY}
|
|
||||||
${OPENGL_LIBRARIES}
|
${OPENGL_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
21
features.todo
Normal file
21
features.todo
Normal 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
|
56
modules.todo
56
modules.todo
@ -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
|
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
|
|
||||||
class CrappyModule : public Module
|
class CrappyModule : public Module
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#ifndef FORWARDMODULE_H
|
#ifndef FORWARDMODULE_H
|
||||||
#define FORWARDMODULE_H
|
#define FORWARDMODULE_H
|
||||||
|
|
||||||
|
#include "glew.h"
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <glew/glew.h>
|
|
||||||
#include "shadersource.h"
|
#include "shadersource.h"
|
||||||
#include "material.h"
|
#include "material.h"
|
||||||
#include "framebuffer.h"
|
#include "framebuffer.h"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef FRAMEBUFFER_H
|
#ifndef FRAMEBUFFER_H
|
||||||
#define FRAMEBUFFER_H
|
#define FRAMEBUFFER_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class Texture;
|
class Texture;
|
||||||
|
18607
src/glew.c
Normal file
18607
src/glew.c
Normal file
File diff suppressed because it is too large
Load Diff
19753
src/glew.h
Normal file
19753
src/glew.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
#ifndef MESH_H
|
#ifndef MESH_H
|
||||||
#define MESH_H
|
#define MESH_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <glm/vec3.hpp>
|
#include <glm/vec3.hpp>
|
||||||
#include <glm/vec2.hpp>
|
#include <glm/vec2.hpp>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef POSTEFFECTMODULE_H
|
#ifndef POSTEFFECTMODULE_H
|
||||||
#define POSTEFFECTMODULE_H
|
#define POSTEFFECTMODULE_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
#include <glm/mat4x4.hpp>
|
#include <glm/mat4x4.hpp>
|
||||||
#include <glm/vec3.hpp>
|
#include <glm/vec3.hpp>
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef SHADER_H
|
#ifndef SHADER_H
|
||||||
#define SHADER_H
|
#define SHADER_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <glm/fwd.hpp>
|
#include <glm/fwd.hpp>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef SKYBOXMODULE_H
|
#ifndef SKYBOXMODULE_H
|
||||||
#define SKYBOXMODULE_H
|
#define SKYBOXMODULE_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef TEXTURE_H
|
#ifndef TEXTURE_H
|
||||||
#define TEXTURE_H
|
#define TEXTURE_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class Image;
|
class Image;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef TEXTUREBLUR_H
|
#ifndef TEXTUREBLUR_H
|
||||||
#define TEXTUREBLUR_H
|
#define TEXTUREBLUR_H
|
||||||
|
|
||||||
#include <glew/glew.h>
|
#include "glew.h"
|
||||||
|
|
||||||
class FrameBuffer;
|
class FrameBuffer;
|
||||||
class Shader;
|
class Shader;
|
||||||
|
1453
src/wglew.h
Normal file
1453
src/wglew.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user