mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Proper editor picking code for Polymer. Also fixes a bunch of tabs that MSVC snuck in polymer.c.
git-svn-id: https://svn.eduke32.com/eduke32@1554 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1a1ba2b0b1
commit
905abc3091
3 changed files with 193 additions and 769 deletions
|
@ -94,7 +94,7 @@ typedef struct s_prmaterial {
|
|||
GLuint detailmap;
|
||||
GLfloat detailscale[2];
|
||||
// PR_BIT_DIFFUSE_MODULATION
|
||||
GLfloat diffusemodulation[4];
|
||||
GLubyte diffusemodulation[4];
|
||||
// PR_BIT_SPECULAR_MAP
|
||||
GLuint specmap;
|
||||
// PR_BIT_SPECULAR_MATERIAL
|
||||
|
@ -289,12 +289,6 @@ typedef struct s_pranimatespritesinfo {
|
|||
int32_t x, y, a, smoothratio;
|
||||
} _pranimatespritesinfo;
|
||||
|
||||
// MEMORY POOL
|
||||
/*
|
||||
#define POLYMER_POOL_SIZE (128 * 1048576)
|
||||
extern nedpool* polymer_pool;
|
||||
*/
|
||||
|
||||
// EXTERNAL FUNCTIONS
|
||||
int32_t polymer_init(void);
|
||||
void polymer_uninit(void);
|
||||
|
@ -302,6 +296,7 @@ void polymer_glinit(void);
|
|||
void polymer_loadboard(void);
|
||||
void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, int16_t daang, int32_t dahoriz, int16_t dacursectnum);
|
||||
void polymer_drawmasks(void);
|
||||
void polymer_editorpick(void);
|
||||
void polymer_rotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t picnum, int8_t dashade, char dapalnum, char dastat, int32_t cx1, int32_t cy1, int32_t cx2, int32_t cy2);
|
||||
void polymer_drawmaskwall(int32_t damaskwallcnt);
|
||||
void polymer_drawsprite(int32_t snum);
|
||||
|
|
|
@ -512,11 +512,12 @@ CANCEL:
|
|||
#endif
|
||||
drawmasks();
|
||||
#ifdef POLYMER
|
||||
if (rendmode == 4)
|
||||
if (rendmode == 4 && searchit == 2)
|
||||
{
|
||||
extern void polymer_alt_editorselect(void);
|
||||
if (searchit==2)
|
||||
polymer_alt_editorselect();
|
||||
polymer_editorpick();
|
||||
drawrooms(pos.x,pos.y,pos.z,ang,horiz,cursectnum);
|
||||
ExtAnalyzeSprites();
|
||||
drawmasks();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue