Aaron Griffith
da58be569f
C code style fixes for lighting/normal code merge (woops...)
2011-03-21 06:21:55 -04:00
Aaron Griffith
cd34d6052b
renamed is_transparent (more like other function names), and exposed it to other C files
2011-03-21 06:18:51 -04:00
Aaron Griffith
88d5f15131
fixed blockid memory leak
2011-03-21 06:05:06 -04:00
Aaron Griffith
2881324084
merged lighting and non-lighting render code
2011-03-21 06:02:47 -04:00
Andrew Chin
61819a7f30
Merged in dtt-c-render
...
Conflicts:
src/overviewer.h
2011-03-20 21:29:05 -04:00
Andrew Chin
329c7557f6
Move some code out of the render_loop function and into a 1-time init
...
routine
2011-03-20 21:13:17 -04:00
Andrew Chin
e096eb45ff
Initial version of C lighting code
...
Needs *lots* of performance work
2011-03-19 22:55:59 -04:00
Aaron Griffith
494caba598
added a nice error if c_overviewer is missing, simplified composite.py
...
now that c_overviewer is required, we don't need to have a PIL paste()
fallback. The next step is to remove composite.py entirely!
2011-03-19 19:07:47 -04:00
Andrew Chin
26d781f249
declaration tweak to make some compilers happy
2011-03-19 14:37:48 -04:00
Andrew Chin
1ac922983f
Use the list of transparent_blocks from chunk.py.
...
This fix is part 2 (of 2) of the graphical rendering glitch fix.
2011-03-19 00:38:30 -04:00
Aaron Griffith
28b750b694
changed block lookup to use numpy macros
...
this fixes (probably all of) the errors we saw before, but not because
we're using the official numpy macro; it's because the old macro
messed up on coordinates like (x, y+1, z) due to operator precedence.
2011-03-19 00:15:29 -04:00
Andrew Chin
f9ae158457
removed log message in iterate.c
2011-03-18 16:37:47 -04:00
Aaron Griffith
6941bc3378
fixed up new C code to be (mostly) C89-compliant
...
*mostly*, because the "inline" keyword isn't C standard until C99, but
I'm leaving it in because most compilers support it and it's really
handy. If it becomes an issue, we can deal with it later.
2011-03-17 23:04:41 -04:00
Alejandro Aguilera
c79b0b9b20
changed imgy calculation and moved "imgy -= 12" to start of loop
...
from discussion in
<https://github.com/agrif/Minecraft-Overviewer/commit/4e63e6#iterate.c-P282 >
2011-03-11 17:54:12 -05:00
Aaron Griffith
5852c17ec8
changed my code style to be more in line with eminence's (and PEP 7), added GPL notice
2011-03-08 20:04:23 -05:00
Aaron Griffith
07dd219d20
refactored c extensions into one
2011-03-08 17:43:50 -05:00
Aaron Griffith
7555bcf1af
moved c extensions into src/
2011-03-08 16:54:20 -05:00