Migrate vec to OFVector3D
FossilOrigin-Name: 2e931ae3e1bb8a3ac23d368cfacc7394d07f295bd0bc56a40e0c70190d019d8b
This commit is contained in:
parent
4ce99636d3
commit
6f64252d65
15 changed files with 141 additions and 136 deletions
23
src/protos.h
23
src/protos.h
|
@ -126,7 +126,7 @@ extern entity *newentity(
|
|||
// worldlight
|
||||
extern void calclight();
|
||||
extern void dodynlight(
|
||||
vec &vold, vec &v, int reach, int strength, dynent *owner);
|
||||
OFVector3D &vold, OFVector3D &v, int reach, int strength, dynent *owner);
|
||||
extern void cleardlights();
|
||||
extern block *blockcopy(block &b);
|
||||
extern void blockpaste(block &b);
|
||||
|
@ -167,7 +167,7 @@ extern void line(int x1, int y1, float z1, int x2, int y2, float z2);
|
|||
extern void box(block &b, float z1, float z2, float z3, float z4);
|
||||
extern void dot(int x, int y, float z);
|
||||
extern void linestyle(float width, int r, int g, int b);
|
||||
extern void newsphere(vec &o, float max, int type);
|
||||
extern void newsphere(OFVector3D &o, float max, int type);
|
||||
extern void renderspheres(int time);
|
||||
extern void gl_drawhud(
|
||||
int w, int h, int curfps, int nquads, int curvert, bool underwater);
|
||||
|
@ -176,9 +176,10 @@ extern void blendbox(int x1, int y1, int x2, int y2, bool border);
|
|||
extern void damageblend(int n);
|
||||
|
||||
// renderparticles
|
||||
extern void setorient(vec &r, vec &u);
|
||||
extern void particle_splash(int type, int num, int fade, vec &p);
|
||||
extern void particle_trail(int type, int fade, vec &from, vec &to);
|
||||
extern void setorient(OFVector3D &r, OFVector3D &u);
|
||||
extern void particle_splash(int type, int num, int fade, OFVector3D &p);
|
||||
extern void particle_trail(
|
||||
int type, int fade, OFVector3D &from, OFVector3D &to);
|
||||
extern void render_particles(int time);
|
||||
|
||||
// worldio
|
||||
|
@ -191,7 +192,7 @@ extern void incomingdemodata(uchar *buf, int len, bool extras = false);
|
|||
extern void demoplaybackstep();
|
||||
extern void stop();
|
||||
extern void stopifrecording();
|
||||
extern void demodamage(int damage, vec &o);
|
||||
extern void demodamage(int damage, OFVector3D &o);
|
||||
extern void demoblend(int damage);
|
||||
|
||||
// physics
|
||||
|
@ -202,7 +203,7 @@ extern void setentphysics(int mml, int mmr);
|
|||
extern void physicsframe();
|
||||
|
||||
// sound
|
||||
extern void playsound(int n, vec *loc = 0);
|
||||
extern void playsound(int n, OFVector3D *loc = 0);
|
||||
extern void playsoundc(int n);
|
||||
extern void initsound();
|
||||
extern void cleansound();
|
||||
|
@ -236,10 +237,10 @@ extern ENetPacket *recvmap(int n);
|
|||
|
||||
// weapon
|
||||
extern void selectgun(int a = -1, int b = -1, int c = -1);
|
||||
extern void shoot(dynent *d, vec &to);
|
||||
extern void shootv(
|
||||
int gun, vec &from, vec &to, dynent *d = 0, bool local = false);
|
||||
extern void createrays(vec &from, vec &to);
|
||||
extern void shoot(dynent *d, OFVector3D &to);
|
||||
extern void shootv(int gun, OFVector3D &from, OFVector3D &to, dynent *d = 0,
|
||||
bool local = false);
|
||||
extern void createrays(OFVector3D &from, OFVector3D &to);
|
||||
extern void moveprojectiles(float time);
|
||||
extern void projreset();
|
||||
extern char *playerincrosshair();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue