----------------------------------------------------------------------------- */
-
-
-/* marker */
-#define PM_TERRAIN_C
-
-
-
/* dependencies */
#include "picointernal.h"
fixme: replace/clean this function
*/
-void _terrain_load_tga_buffer( unsigned char *buffer, unsigned char **pic, int *width, int *height ){
+void _terrain_load_tga_buffer( unsigned char *buffer, unsigned char **pic, int *width, int *height ) {
int row, column;
int columns, rows, numPixels;
unsigned char *pixbuf;
validates a picoterrain file
*/
-static int _terrain_canload( PM_PARAMS_CANLOAD ){
+static int _terrain_canload( PM_PARAMS_CANLOAD ) {
picoParser_t *p;
loads a picoterrain file
*/
-static picoModel_t *_terrain_load( PM_PARAMS_LOAD ){
+static picoModel_t *_terrain_load( PM_PARAMS_LOAD ) {
int i, j, v, pw[ 5 ], r;
picoParser_t *p;
}
/* detox and set shader name */
- _pico_setfext( shader, "" );
+ _pico_setfext( shader, NULL );
_pico_unixify( shader );
PicoSetShaderName( picoShader, shader );
_pico_free( shader );
_pico_set_color( color, colorPixel[ 0 ], colorPixel[ 1 ], colorPixel[ 2 ], colorPixel[ 3 ] );
}
else{
- _pico_set_color( color, 255, 255, 255, 255 );
+ _pico_copy_color( picoColor_white, color );
}
PicoSetSurfaceColor( picoSurface, 0, v, color );