0

ported spawn render mode to C

This commit is contained in:
Aaron Griffith
2011-03-23 02:31:09 -04:00
parent 69bb56dcb4
commit ccddba2d81
5 changed files with 143 additions and 3 deletions

View File

@@ -25,8 +25,9 @@ static float calculate_darkness(unsigned char skylight, unsigned char blocklight
}
/* loads the appropriate light data for the given (possibly non-local)
coordinates, and returns a black_coeff */
static inline float
coordinates, and returns a black_coeff
this is exposed, so other (derived) rendermodes can use it */
inline float
get_lighting_coefficient(RenderModeLighting *self, RenderState *state, int x, int y, int z) {
/* placeholders for later data arrays, coordinates */
PyObject *blocks = NULL;