4bcbb69fc7
Use more generic variable names in read_files()
2014-05-10 20:25:24 +02:00
723155a2ce
Add add_vectors() and sub_vectors()
2014-05-10 20:17:12 +02:00
2733b17af8
Add doxygen comment to main.c
2014-05-10 19:39:20 +02:00
8e4da0763a
Fix doxygen comment
2014-05-10 19:34:43 +02:00
7610843935
Add @file/@brief doc, merge parser into half_edge
2014-05-10 19:33:54 +02:00
c5c6c8b89a
Add half_edge.c for operations on half edge structures
2014-05-10 19:16:39 +02:00
d90d6f4bd1
Restructure files
2014-05-10 19:16:13 +02:00
573b7f3f85
Fix doxygen comment
2014-05-10 18:39:15 +02:00
8f8f5ad0a2
Add normalize_vector() function
2014-05-10 18:35:22 +02:00
1df3195f37
Make vector_product() aliasing-safe
2014-05-10 18:19:26 +02:00
7587b8058a
Improve doxygen comment
2014-05-10 18:19:02 +02:00
9e7ff8dc4f
Add vec_math module
2014-05-10 17:34:25 +02:00
17a52c4b89
Fix Makefile Objects
2014-05-10 17:33:31 +02:00
f1fa0eb03a
Add overly big object example
2014-05-09 23:45:22 +02:00
71eae42e78
Improve function name, add static declaration
2014-05-09 19:52:21 +02:00
f68eaed204
Fix doxygen comment
2014-05-09 19:50:56 +02:00
d0dfba689b
Properly scale the objects before drawing
2014-05-09 19:47:05 +02:00
6725dcf5ab
Make parameters const where possible
2014-05-09 17:53:25 +02:00
7bc3d7230f
80 char limit
2014-05-09 17:53:16 +02:00
9658f92b58
Rotate around the center of the object
2014-05-09 17:53:02 +02:00
5bfce60f7e
Restructure file structure
2014-05-09 15:24:46 +02:00
66e88179e3
Add brilliant example .obj
2014-05-09 15:13:08 +02:00
19e33d22db
Add "-pedantic" to CFLAGS
2014-05-09 15:03:58 +02:00
a9a6f92164
Add doxygen comment for draw_vertices()
2014-05-09 15:03:46 +02:00
d238261d4e
Fix comment style
2014-05-09 15:03:29 +02:00
36a6e2aae4
Implement "q" for quit program
2014-05-09 14:57:47 +02:00
f7fc2cb91b
Rename q,e keys to +,-
2014-05-09 14:57:46 +02:00
6a8e77c72e
Use separate draw_vertices() method
2014-05-09 14:57:46 +02:00
4bf8d0982b
Rm useless printf
2014-05-09 14:57:46 +02:00
466a8ef6e0
Fix memory leak in parser
2014-05-09 14:57:46 +02:00
ab95762d50
Implement rotation of the single object
2014-05-09 14:57:38 +02:00
03fca66adc
Fix error handling in read_file()
2014-05-09 14:56:52 +02:00
hasufell
5b5eea7f03
Improve inline comments
2014-05-09 11:38:53 +02:00
hasufell
a32de1dd6d
Save edge pointer in vertices
2014-05-09 11:38:37 +02:00
8f2ca02cd6
Rename draw.* to gl_draw.*
2014-05-08 22:54:54 +02:00
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