Changeset 2298
- Timestamp:
- Jan 30, 2013, 1:00:13 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r2214 r2298 71 71 test/benchsuite 72 72 test/btphystest 73 test/meshviewer 73 74 test/testsuite 74 75 test/sandbox/sample -
trunk/test/Makefile.am
r2294 r2298 11 11 EXTRA_DIST = data/gradient.png 12 12 13 noinst_PROGRAMS = benchsuite $(testsuite) btphystest MeshViewer13 noinst_PROGRAMS = benchsuite $(testsuite) btphystest meshviewer 14 14 15 15 TESTS = $(testsuite) … … 50 50 btphystest_DEPENDENCIES = $(top_builddir)/src/liblol.a 51 51 52 MeshViewer_SOURCES = MeshViewer.cpp53 MeshViewer_CPPFLAGS = @LOL_CFLAGS@54 MeshViewer_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@55 MeshViewer_DEPENDENCIES = $(top_builddir)/src/liblol.a52 meshviewer_SOURCES = MeshViewer.cpp 53 meshviewer_CPPFLAGS = @LOL_CFLAGS@ 54 meshviewer_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ 55 meshviewer_DEPENDENCIES = $(top_builddir)/src/liblol.a 56 56 -
trunk/test/MeshViewer.cpp
r2296 r2298 31 31 { 32 32 m_meshes.Push(EasyMesh()); 33 m_meshes.Last().Compile("[sc# 0f0 ab 2 2 2 t .8 .8 .8 rx 20 ry 20 [sc#00f ab 2 2 2 tx 0 csgu]]");33 m_meshes.Last().Compile("[sc#2f2 ab 2 2 2 t .8 .8 .8 rx 20 ry 20 [sc#22f ab 2 2 2 tx 0 csgu]]"); 34 34 } 35 35 … … 44 44 m_camera->ForceSceneUpdate(); 45 45 Ticker::Ref(m_camera); 46 47 m_lights << new Light(); 48 m_lights.Last()->SetPosition(vec4(4.f, -1.f, -4.f, 0.f)); 49 m_lights.Last()->SetColor(vec4(.0f, .2f, .5f, 1.f)); 50 Ticker::Ref(m_lights.Last()); 51 52 m_lights << new Light(); 53 m_lights.Last()->SetPosition(vec4(8.f, 2.f, 6.f, 1.f)); 54 m_lights.Last()->SetColor(vec4(.5f, .3f, .0f, 1.f)); 55 Ticker::Ref(m_lights.Last()); 56 46 57 min_pos = vec3(FLT_MAX); 47 58 max_pos = vec3(-FLT_MAX); … … 53 64 { 54 65 Ticker::Unref(m_camera); 66 for (int i = 0; i < m_lights.Count(); ++i) 67 Ticker::Unref(m_lights[i]); 55 68 } 56 69 … … 74 87 vec4 c(0, 0, -2, 1.0f); 75 88 vec4 d(-1, -1, 1, 1.0f); 76 89 77 90 //vec2 toto; 78 91 //near plane : vec4(toto, 1.f, 1.f); … … 153 166 154 167 Array<EasyMesh> m_meshes; 168 Array<Light *> m_lights; 155 169 Camera *m_camera; 156 170
Note: See TracChangeset
for help on using the changeset viewer.