72 Commits

Author SHA1 Message Date
Josh Holtrop
4e76817336 make Material a public subclass, remove renderMaterial() 2011-05-04 15:50:18 -04:00
Josh Holtrop
933c4b457a update README for version info v2.0 2011-04-25 17:22:32 -04:00
Josh Holtrop
2e599ab86b bugfix in index calculation for material group > 0 2011-04-25 17:20:10 -04:00
Josh Holtrop
e1f2d5a04a remove unnecessary 'num' variable 2011-04-25 17:17:13 -04:00
Josh Holtrop
ce0a8e608d fix populating buffer data 2011-04-25 16:38:17 -04:00
Josh Holtrop
a12c4ec42d fill out draw() 2011-04-25 14:48:47 -04:00
Josh Holtrop
e07ed46297 bind buffers 2011-04-24 23:31:08 -04:00
Josh Holtrop
53d4bebbc2 add draw() and renderMaterial() 2011-04-24 23:28:53 -04:00
Josh Holtrop
fea2100741 fill indices VBO 2011-04-24 23:16:13 -04:00
Josh Holtrop
02a3f85fc1 use two VBOs, filling in data VBO 2011-04-24 22:46:56 -04:00
Josh Holtrop
0bdfff50e7 store face indices per material for drawing 2011-04-24 22:35:58 -04:00
Josh Holtrop
d13e3a60b2 fill in client-side data 2011-04-24 22:19:24 -04:00
Josh Holtrop
5eed1256ef allocate client-side data for VBO 2011-04-24 21:03:14 -04:00
Josh Holtrop
0f816ded34 bugfix with readFaces() 2011-04-24 20:52:45 -04:00
Josh Holtrop
e980b60044 use atof() instead of sscanf() 2011-04-24 20:46:29 -04:00
Josh Holtrop
40c37dacb2 working on buildVBO() 2011-04-24 19:54:51 -04:00
Josh Holtrop
6dab4e48a6 build flat_vertices collection for VBO 2011-04-24 19:14:07 -04:00
Josh Holtrop
67ef0c4009 add initial buildVBO() 2011-04-20 16:29:59 -04:00
Josh Holtrop
66d4bb50e4 fix basePath(); load .mtl relative to .obj path 2011-04-20 15:46:30 -04:00
Josh Holtrop
d78d956826 fix readFaces() segfault 2011-04-20 15:37:00 -04:00
Josh Holtrop
a6eca59683 build driver program as well 2011-04-20 15:32:26 -04:00
Josh Holtrop
806f7890f3 call updateAABB() 2011-04-20 15:25:58 -04:00
Josh Holtrop
0daac5781e loadfile_t takes Buffer ref instead of ptr 2011-04-20 15:22:35 -04:00
Josh Holtrop
a46b5baa05 fill WFObj::loadfile(), add Buffer allocation 2011-04-20 15:20:10 -04:00
Josh Holtrop
ffe2fe1d92 load materials into Material objects 2011-04-20 15:08:42 -04:00
Josh Holtrop
874be25658 update trimString(), add tokenize() 2011-04-20 14:45:55 -04:00
Josh Holtrop
cf4e09814f add valid flag, expand clear() 2011-04-20 12:22:59 -04:00
Josh Holtrop
d33b4826e2 add WFObj::VertexRef::operator<() 2011-04-20 12:19:55 -04:00
Josh Holtrop
3506ad6b57 update updateAABB() 2011-04-20 11:34:02 -04:00
Josh Holtrop
8e6cd37dc9 use scons to build 2011-04-20 11:30:00 -04:00
Josh Holtrop
51c0ded005 fix compilation errors; compiling! 2011-04-19 17:05:17 -04:00
Josh Holtrop
18c4be6a42 remove WFMtl, I didn't like it 2011-04-19 16:58:19 -04:00
Josh Holtrop
a9ad715e4b finish readFaces() 2011-04-19 16:51:25 -04:00
Josh Holtrop
96737a0386 finish processInputLine() 2011-04-19 16:43:08 -04:00
Josh Holtrop
dffa5a98a5 add readFaces() and readVertexRef() 2011-04-19 16:26:59 -04:00
Josh Holtrop
476f4cde66 remove render(), gut processInputLine(), add m_faces map 2011-04-19 16:16:41 -04:00
Josh Holtrop
3f78016e26 coding style update 2011-04-19 16:00:25 -04:00
Josh Holtrop
e7f7ca4b3f add VertexRef 2011-04-19 15:59:55 -04:00
Josh Holtrop
f46f887472 replace m_data with m_vertices 2011-04-19 15:58:18 -04:00
Josh Holtrop
594642f489 finish load() 2011-04-18 12:40:59 -04:00
Josh Holtrop
28722f4c94 add WFObj::getLine() 2011-04-18 12:35:09 -04:00
Josh Holtrop
d59eb2ffe5 break compile; begin to modify for v2.0 2011-04-18 12:21:13 -04:00
Josh Holtrop
ebb39c8750 update README for v2.0 2011-04-18 10:56:34 -04:00
Josh Holtrop
7bc9afea4b add README v1.0 2011-04-18 09:16:24 -04:00
Josh Holtrop
d06888128c fix full path bug with loading texture files for materials 2011-03-08 13:44:34 -05:00
josh
b714c0b08f use CPPFLAGS in Makefile
git-svn-id: svn://anubis/misc/wfobj@254 bd8a9e45-a331-0410-811e-c64571078777
2010-10-26 20:08:50 +00:00
josh
8edddaf396 setting texture mode when blending
git-svn-id: svn://anubis/misc/wfobj@243 bd8a9e45-a331-0410-811e-c64571078777
2010-09-17 16:42:06 +00:00
josh
9920ba04b8 added enableBlending flag to WFObj rendering
git-svn-id: svn://anubis/misc/wfobj@242 bd8a9e45-a331-0410-811e-c64571078777
2010-09-17 16:18:19 +00:00
josh
11033c5876 fixed checkGLError()
git-svn-id: svn://anubis/misc/wfobj@238 bd8a9e45-a331-0410-811e-c64571078777
2010-02-25 16:45:50 +00:00
josh
b2ab1fc98b added DEBUG_GL_ERROR debug functionality
git-svn-id: svn://anubis/misc/wfobj@215 bd8a9e45-a331-0410-811e-c64571078777
2009-11-18 00:20:14 +00:00