Commit Graph

124 Commits

Author SHA1 Message Date
hasufell c895e3970f
Fix step factor calc in draw_bez() 2014-06-08 00:24:57 +02:00
hasufell ae45cf8627
Rm obsolete check 2014-06-07 02:25:52 +02:00
hasufell 2df0e3eff8
Reallocate in chunks in assemble_obj_arrays() 2014-06-07 01:59:23 +02:00
hasufell 9ae8fac4e2
Reinstate L/l for growing/shrinking vector normal length 2014-06-06 22:39:57 +02:00
hasufell 6ccca351e8
Fix/add doxygen comments 2014-06-06 22:23:39 +02:00
hasufell bf9eff2e13
Rm extraneous newlines 2014-06-06 22:23:22 +02:00
hasufell 480da24de4
Replace glut with SDL2 2014-06-06 22:16:33 +02:00
hasufell aa59033d28
Don't allow a negative ball speed 2014-06-02 00:13:15 +02:00
hasufell 919436f997
Set color of ball to green 2014-06-01 19:20:25 +02:00
hasufell b24cef011c
Rm obsolete newline 2014-06-01 19:20:18 +02:00
hasufell 107db13e2e
Fix doxygen comments 2014-06-01 19:20:08 +02:00
hasufell b01e00497d
Allow to draw frame and ball, small refactor 2014-06-01 19:12:07 +02:00
hasufell f83b778323
Visualize the construction of the indermediate bezier control points 2014-06-01 18:17:11 +02:00
hasufell 1ca125b276
Set parameters const where possible 2014-06-01 16:47:58 +02:00
hasufell 62e02582a4
Make bezier calculation more modular 2014-06-01 16:17:51 +02:00
hasufell ea8d08204c
Move bezier stuff to it's own module 2014-06-01 15:12:37 +02:00
hasufell af52bd4085
Add missing include 2014-06-01 15:10:46 +02:00
hasufell cabc8e8c09
Draw bezier curve 2014-06-01 02:13:45 +02:00
hasufell 99863ddcdd
Fix memory leak when there is no face 2014-06-01 02:12:49 +02:00
hasufell a467ebc514
Draw Points as well for the curve 2014-05-31 18:54:28 +02:00
hasufell 5afe6e0bda
Improve drawing conditions 2014-05-31 18:51:41 +02:00
hasufell b87a001ac5
Improve readability 2014-05-31 18:43:35 +02:00
hasufell 1a107b455b
Allow to draw bezier curve (only the points) 2014-05-31 18:43:05 +02:00
hasufell 2df200fce8
Update doxygen comments 2014-05-31 17:38:18 +02:00
hasufell a1be0803a6
Fix segfault in case we don't have any bezier curves 2014-05-31 17:37:06 +02:00
hasufell 81e8aa0552
Allow to read bezier curves 2014-05-31 17:32:40 +02:00
hasufell 6e31ec91fd Fix finding dummy edge pairs 2014-05-19 18:14:04 +02:00
hasufell 4c20bca7e9 Improve doxygen comments 2014-05-19 18:13:51 +02:00
hasufell f65021dfac
Add missing doxygen comment 2014-05-17 18:42:30 +02:00
hasufell d3fe07c34d
Fix vsync 2014-05-17 17:24:29 +02:00
hasufell b5b35992c6
Improve doxygen comments 2014-05-17 16:32:45 +02:00
hasufell acadb1161c
Be more fault tolerant for drawing normals
Some open data structures are not yet supported
with vertex normals. Avoid infinite loop for those and
just draw what we got.
2014-05-17 14:55:46 +02:00
hasufell a677668418
Free obj_f_vt if we don't need it 2014-05-17 14:18:58 +02:00
hasufell 090f1ac2ba
Add TODO 2014-05-17 14:12:20 +02:00
hasufell 2f52351cbf
Refactor
Use a separate accelertion struct for HE_vert.
Don't use so long parameter lists, introduce obj_items
data structure.
2014-05-17 14:07:34 +02:00
hasufell 9c35ee0159
Fix doxygen comments 2014-05-17 03:54:07 +02:00
hasufell 85064e2f0c
Rm obsolete casts 2014-05-17 03:44:19 +02:00
hasufell 9e8b11f3bc
Update keyboard doc 2014-05-17 03:40:13 +02:00
hasufell 20533eea4b
Make normals a bit smaller and better to control 2014-05-17 03:32:14 +02:00
hasufell cb54d54e2c
Set window title 2014-05-17 03:31:56 +02:00
hasufell 03440fa469
Improve inline doc 2014-05-17 03:05:19 +02:00
hasufell 0659288497
Fix doxygen comments 2014-05-17 02:59:43 +02:00
hasufell bf7b86845e
Save texture coordinates as well 2014-05-17 02:52:00 +02:00
hasufell a451979501
Re-refactor
Let's keep this speed-optimized, even though
we want to achieve high readability.
2014-05-17 01:22:05 +02:00
hasufell a9bd5ae144
Fix doxygen file comment 2014-05-16 20:20:42 +02:00
hasufell cd864fa1ba
Move half-edge assembler to separate .c file 2014-05-16 20:10:43 +02:00
hasufell dfd978f714
Refactor parse_obj() and move some subroutines to new functions 2014-05-16 19:57:43 +02:00
hasufell 0ecd0d8e9f
Merge branch 'master' into refactor
Conflicts:
	src/half_edge.c
2014-05-16 19:15:29 +02:00
hasufell f62e280cea
Reimplement dummy-edge logic
This will also work for more complex structures such as
testscube2_mitSpitze_offen.obj.
2014-05-16 19:04:38 +02:00
hasufell 8ec744867c
Remove obsolete usleep call in gl_draw.c 2014-05-16 15:09:27 +02:00