Rev 5064 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5064 | Rev 5075 | ||
---|---|---|---|
Line 100... | Line 100... | ||
100 | static int32_t nextvoxid = 0; |
100 | static int32_t nextvoxid = 0; |
101 | static char *faketilebuffer = NULL; |
101 | static char *faketilebuffer = NULL; |
102 | static int32_t faketilebuffersiz = 0; |
102 | static int32_t faketilebuffersiz = 0; |
103 | 103 | ||
104 | #ifdef USE_OPENGL
|
104 | #ifdef USE_OPENGL
|
105 | extern float alphahackarray[MAXTILES]; |
105 | extern uint8_t alphahackarray[MAXTILES]; |
106 | #endif
|
106 | #endif
|
107 | 107 | ||
108 | static const char *skyfaces[6] = |
108 | static const char *skyfaces[6] = |
109 | {
|
109 | {
|
110 | "front face", "right face", "back face", |
110 | "front face", "right face", "back face", |
Line 395... | Line 395... | ||
395 | 395 | ||
396 | if (scriptfile_getsymbol(script,&tile)) break; |
396 | if (scriptfile_getsymbol(script,&tile)) break; |
397 | if (scriptfile_getdouble(script,&alpha)) break; |
397 | if (scriptfile_getdouble(script,&alpha)) break; |
398 | #ifdef USE_OPENGL
|
398 | #ifdef USE_OPENGL
|
399 | if ((uint32_t)tile < MAXTILES) |
399 | if ((uint32_t)tile < MAXTILES) |
400 | alphahackarray[tile] = alpha; |
400 | alphahackarray[tile] = alpha * UINT8_MAX; |
401 | #endif
|
401 | #endif
|
402 | }
|
402 | }
|
403 | break; |
403 | break; |
404 | case T_ALPHAHACKRANGE: |
404 | case T_ALPHAHACKRANGE: |
405 | {
|
405 | {
|
Line 416... | Line 416... | ||
416 | if (check_tile_range("alphahackrange", &tilenume1, &tilenume2, script, cmdtokptr)) |
416 | if (check_tile_range("alphahackrange", &tilenume1, &tilenume2, script, cmdtokptr)) |
417 | break; |
417 | break; |
418 | 418 | ||
419 | #ifdef USE_OPENGL
|
419 | #ifdef USE_OPENGL
|
420 | for (i=tilenume1; i<=tilenume2; i++) |
420 | for (i=tilenume1; i<=tilenume2; i++) |
421 | alphahackarray[i] = alpha; |
421 | alphahackarray[i] = alpha * UINT8_MAX; |
422 | #endif
|
422 | #endif
|
423 | }
|
423 | }
|
424 | break; |
424 | break; |
425 | case T_SPRITECOL: |
425 | case T_SPRITECOL: |
426 | {
|
426 | {
|