Added prototypes for some stubs to shut gcc up ;)

(In doing so found a stub that had wrong # of args)

Kent
This commit is contained in:
Kent Mein
2005-08-16 20:21:43 +00:00
parent 4fed035618
commit d408dcdaad
3 changed files with 33 additions and 13 deletions

View File

@@ -76,7 +76,20 @@ extern struct ListBase editNurb;
#include "DNA_world_types.h" /* for render_types */
#include "render_types.h"
extern struct RE_Render R;
float Blinn_Spec(float *n, float *l, float *v, float a, float b);
float Phong_Spec(float *, float *, float *, int);
float CookTorr_Spec(float *n, float *l, float *v, int hard);
float Toon_Spec(float *n, float *l, float *v, float a, float b);
float WardIso_Spec(float *n, float *l, float *v, float a);
float Toon_Diff(float *n, float *l, float *v, float a, float b);
float OrenNayar_Diff(float *n, float *l, float *v, float rough);
float Minnaert_Diff(float nl, float *n, float *v, float a);
void add_to_diffuse(float *, ShadeInput *, float, float, float, float);
void ramp_diffuse_result(float *diff, ShadeInput *shi);
void do_specular_ramp(ShadeInput *shi, float is, float t, float *spec);
void ramp_spec_result(float *, float *, float *, ShadeInput *);
void mainqenter (unsigned short event, short val);
void waitcursor(int);
void allqueue(unsigned short event, short val);
#define REDRAWVIEW3D 0x4010
@@ -113,8 +126,8 @@ void allspace(unsigned short event, short val) ;
extern ListBase editelems;
/* object.c */
/* void BPY_free_scriptlink(ScriptLink *slink); */
/* void BPY_copy_scriptlink(ScriptLink *scriptlink); */
void BPY_free_scriptlink(ScriptLink *slink);
void BPY_copy_scriptlink(ScriptLink *scriptlink);
float *give_cursor(void); // become a callback or argument
void exit_posemode(int freedata);
@@ -127,16 +140,25 @@ short pupmenu(char *instr); // will be general callback
/* scene.c */
#include "DNA_sequence_types.h"
void free_editing(struct Editing *ed); // scenes and sequences problem...
void BPY_do_all_scripts (short int event);
int BPY_call_importloader(char *name);
/* texture.c */
#define FLO 128
#define INT 96
struct EnvMap;
struct Tex;
void RE_free_envmap(struct EnvMap *env);
void do_material_tex(ShadeInput *shi);
void externtex(struct MTex *mtex, float *vec, float *tin, float *tr,
float *tg, float *tb, float *ta);
void init_render_textures(void);
void end_render_textures(void);
void RE_free_envmap(struct EnvMap *env);
void RE_free_envmapdata(struct EnvMap *env);
struct EnvMap *RE_copy_envmap(struct EnvMap *env);
void RE_free_envmapdata(struct EnvMap *env);
int RE_envmaptex(struct Tex *tex, float *texvec, float *dxt, float *dyt);
int RE_envmaptex(struct Tex *tex, float *texvec, float *dxt, float *dyt);
extern char texstr[20][12]; /* buttons.c */

View File

@@ -37,10 +37,6 @@
#include "BPI_script.h"
#include "DNA_material_types.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int winqueue_break= 0;
char bprogname[1];
@@ -100,7 +96,7 @@ float CookTorr_Spec(float *n, float *l, float *v, int hard){return 0;}
float Toon_Spec(float *n, float *l, float *v, float a, float b){return 0;}
float WardIso_Spec(float *n, float *l, float *v, float a){return 0;}
float Toon_Diff(float *n, float *l, float *v, float a, float b){return 0;}
float OrenNayar_Diff(float *n, float *l, float *v, float a, float b){return 0;}
float OrenNayar_Diff(float *n, float *l, float *v, float rough){return 0;}
float Minnaert_Diff(float nl, float *n, float *v, float a){return 0;}
void add_to_diffuse(float *diff, ShadeInput *shi, float is, float r, float g, float b){}
void ramp_diffuse_result(float *diff, ShadeInput *shi){}

View File

@@ -34,9 +34,11 @@
#include <stdio.h>
#include "GEN_messaging.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int BLO_readblenfilememory( char *fromBuffer, int fromBufferSize);
int BLO_readblenfilename( char *fileName);
int BLO_readblenfilehandle( int fileHandle);
int BLO_is_a_runtime( char *file);
int BLO_read_runtime( char *file);
int
BLO_readblenfilememory(