Commit Graph

25 Commits

Author SHA1 Message Date
9fedbc4c37
Add missing license header 2014-05-08 22:46:11 +02:00
488147c6cb
Add junk files to make clean target 2014-05-08 22:45:36 +02:00
fa80615415
Include opengl, draw the imported object 2014-05-08 22:45:16 +02:00
a918af80f3
Fix valgrind warnings and counter in "find pairs" 2014-05-08 18:06:06 +02:00
1218778145
Restructure files
filereader: file operation, reading files, reading .obj
parser: parses a string representing obj structure, converting
        to HE_obj
print: various helper functions for printing the structures
2014-05-08 17:39:23 +02:00
2c1238d3be
Fix remaining uint8_t types 2014-05-08 17:38:22 +02:00
d3430d36fd
Implement print_edges() and print_faces() 2014-05-08 17:37:39 +02:00
3aa6c59904
Implement creating HE_edges and HE_faces 2014-05-08 17:37:22 +02:00
c8eca1b978
Consistently use uint32_t types for counters etc. 2014-05-08 17:36:46 +02:00
98bdeac6f8
Clean up, improve counter logic, cast alloc/realloc 2014-05-08 17:36:13 +02:00
4b04a66cf8
Implement various print functions, add HE_obj struct 2014-05-07 21:52:36 +02:00
1a2c9767ab
Implement parsing of the faces (only plain for now)
This is not yet the HE_face structure!
2014-05-07 21:51:47 +02:00
2887dd2117
Fix realloc() usage
We must not do:
  foo = realloc(foo, ...)
if realloc fails, then we have no idea about it, so we
have to use temporary NULL initialized pointers.
2014-05-07 21:13:29 +02:00
bc2a35cd4e
Fix memory allocation read_file()
The logic was simply broken and did only work
if the file was less than STD_FILE_BUF.
2014-05-07 21:10:07 +02:00
6270173331
Initialize pointers 2014-05-07 21:09:32 +02:00
e8f0a68ed8
Make valgrind happy 2014-05-07 21:09:04 +02:00
c3b05f8cf9
Take .obj file as program argument 2014-05-07 21:08:47 +02:00
f517f548d8
Set parameters const where possible 2014-05-06 23:29:01 +02:00
44e715db88
Add GPL-2 license 2014-05-06 23:20:16 +02:00
7f0a5e7913
Alphabetical order for includes
unless needed otherwise
2014-05-06 23:18:38 +02:00
3bebc46a74
Add doxyfile 2014-05-06 23:14:05 +02:00
18975f9434
Add missing types.h and fix Makefile 2014-05-06 23:11:42 +02:00
f6ee3658fb
Add .obj test files 2014-05-06 23:11:13 +02:00
1be990e253
Add .gitignore 2014-05-06 23:11:01 +02:00
33d658a37f
First try of a parser 2014-05-06 23:09:59 +02:00