1 | #ifdef _WIN32 |
1 | #ifdef _WIN32 |
2 | # define WIN32_LEAN_AND_MEAN |
2 | # define WIN32_LEAN_AND_MEAN |
3 | # define _WIN32_WINNT 0x0500 // needed to get win2000 api calls |
3 | # define _WIN32_WINNT 0x0500 // needed to get win2000 api calls |
4 | # include <malloc.h> |
4 | # include <malloc.h> |
5 | # include <windows.h> |
5 | # include <windows.h> |
|
|
6 | # include <wininet.h> |
6 | # pragma warning(disable:4244) |
7 | # pragma warning(disable:4244) |
7 | #endif |
8 | #endif |
8 | |
9 | |
9 | #include "EXTERN.h" |
10 | #include "EXTERN.h" |
10 | #include "perl.h" |
11 | #include "perl.h" |
… | |
… | |
144 | } |
145 | } |
145 | |
146 | |
146 | static void |
147 | static void |
147 | layout_get_pixel_size (CFPlus__Layout self, int *w, int *h) |
148 | layout_get_pixel_size (CFPlus__Layout self, int *w, int *h) |
148 | { |
149 | { |
|
|
150 | PangoRectangle rect; |
|
|
151 | |
|
|
152 | // get_pixel_* wrongly rounds down |
149 | pango_layout_get_pixel_size (self->pl, w, h); |
153 | pango_layout_get_extents (self->pl, 0, &rect); |
150 | |
154 | |
151 | if (!*w) *w = 1; |
155 | rect.width = (rect.width + PANGO_SCALE - 1) / PANGO_SCALE; |
152 | if (!*h) *h = 1; |
156 | rect.height = (rect.height + PANGO_SCALE - 1) / PANGO_SCALE; |
153 | |
157 | |
154 | *w = (*w + 3) & ~3; |
158 | if (!rect.width) rect.width = 1; |
|
|
159 | if (!rect.height) rect.height = 1; |
|
|
160 | |
|
|
161 | *w = rect.width; |
|
|
162 | *h = rect.height; |
155 | } |
163 | } |
156 | |
164 | |
157 | typedef uint16_t mapface; |
165 | typedef uint16_t mapface; |
158 | |
166 | |
159 | typedef struct { |
167 | typedef struct { |
… | |
… | |
162 | float s, t; |
170 | float s, t; |
163 | uint8_t r, g, b, a; |
171 | uint8_t r, g, b, a; |
164 | } maptex; |
172 | } maptex; |
165 | |
173 | |
166 | typedef struct { |
174 | typedef struct { |
167 | int16_t darkness; |
175 | uint32_t player; |
168 | mapface face[3]; |
176 | mapface face[3]; |
|
|
177 | uint16_t darkness; |
|
|
178 | uint8_t stat_width, stat_hp, flags; |
169 | } mapcell; |
179 | } mapcell; |
170 | |
180 | |
171 | typedef struct { |
181 | typedef struct { |
172 | int32_t c0, c1; |
182 | int32_t c0, c1; |
173 | mapcell *col; |
183 | mapcell *col; |
… | |
… | |
286 | static void |
296 | static void |
287 | map_blank (CFPlus__Map self, int x0, int y0, int w, int h) |
297 | map_blank (CFPlus__Map self, int x0, int y0, int w, int h) |
288 | { |
298 | { |
289 | int x, y; |
299 | int x, y; |
290 | maprow *row; |
300 | maprow *row; |
|
|
301 | mapcell *cell; |
291 | |
302 | |
292 | for (y = y0; y < y0 + h; y++) |
303 | for (y = y0; y < y0 + h; y++) |
293 | if (y >= 0) |
304 | if (y >= 0) |
294 | { |
305 | { |
295 | if (y >= self->rows) |
306 | if (y >= self->rows) |
… | |
… | |
301 | if (x >= row->c0) |
312 | if (x >= row->c0) |
302 | { |
313 | { |
303 | if (x >= row->c1) |
314 | if (x >= row->c1) |
304 | break; |
315 | break; |
305 | |
316 | |
306 | row->col[x - row->c0].darkness = -1; |
317 | cell = row->col + x - row->c0; |
|
|
318 | |
|
|
319 | cell->darkness = 0; |
|
|
320 | cell->stat_hp = 0; |
|
|
321 | cell->flags = 0; |
|
|
322 | cell->player = 0; |
307 | } |
323 | } |
308 | } |
324 | } |
309 | } |
325 | } |
310 | |
326 | |
311 | static void |
327 | static void |
… | |
… | |
512 | SDL_GL_SetAttribute (SDL_GL_ACCUM_GREEN_SIZE, 0); |
528 | SDL_GL_SetAttribute (SDL_GL_ACCUM_GREEN_SIZE, 0); |
513 | SDL_GL_SetAttribute (SDL_GL_ACCUM_BLUE_SIZE, 0); |
529 | SDL_GL_SetAttribute (SDL_GL_ACCUM_BLUE_SIZE, 0); |
514 | SDL_GL_SetAttribute (SDL_GL_ACCUM_ALPHA_SIZE, 0); |
530 | SDL_GL_SetAttribute (SDL_GL_ACCUM_ALPHA_SIZE, 0); |
515 | |
531 | |
516 | SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1); |
532 | SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1); |
|
|
533 | #if SDL_VERSION_ATLEAST(1,2,10) |
517 | SDL_GL_SetAttribute (SDL_GL_ACCELERATED_VISUAL, 1); |
534 | SDL_GL_SetAttribute (SDL_GL_ACCELERATED_VISUAL, 1); |
518 | SDL_GL_SetAttribute (SDL_GL_SWAP_CONTROL, 1); |
535 | SDL_GL_SetAttribute (SDL_GL_SWAP_CONTROL, 1); |
|
|
536 | #endif |
519 | |
537 | |
520 | SDL_EnableUNICODE (1); |
538 | SDL_EnableUNICODE (1); |
521 | SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); |
539 | SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); |
522 | |
540 | |
523 | m = SDL_ListModes (0, SDL_FULLSCREEN | SDL_OPENGL); |
541 | m = SDL_ListModes (0, SDL_FULLSCREEN | SDL_OPENGL); |
… | |
… | |
632 | lowdelay (int fd, int val = 1) |
650 | lowdelay (int fd, int val = 1) |
633 | CODE: |
651 | CODE: |
634 | #ifndef _WIN32 |
652 | #ifndef _WIN32 |
635 | setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof (val)); |
653 | setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof (val)); |
636 | #endif |
654 | #endif |
|
|
655 | |
|
|
656 | void |
|
|
657 | win32_proxy_info () |
|
|
658 | PPCODE: |
|
|
659 | { |
|
|
660 | #ifdef _WIN32 |
|
|
661 | INTERNET_PROXY_INFO proxyinfo; |
|
|
662 | char buffer[2048]; |
|
|
663 | DWORD buflen; |
|
|
664 | |
|
|
665 | EXTEND (SP, 3); |
|
|
666 | |
|
|
667 | buflen = sizeof (buffer); |
|
|
668 | if (InternetQueryOption (0, INTERNET_OPTION_PROXY, (void *)buffer, &buflen)) |
|
|
669 | if (((INTERNET_PROXY_INFO *)buffer)->dwAccessType == INTERNET_OPEN_TYPE_PROXY) |
|
|
670 | { |
|
|
671 | PUSHs (newSVpv (((INTERNET_PROXY_INFO *)buffer)->lpszProxy, 0)); |
|
|
672 | |
|
|
673 | buflen = sizeof (buffer); |
|
|
674 | if (InternetQueryOption (0, INTERNET_OPTION_PROXY_USERNAME, (void *)buffer, &buflen)) |
|
|
675 | { |
|
|
676 | PUSHs (newSVpv (buffer, 0)); |
|
|
677 | |
|
|
678 | buflen = sizeof (buffer); |
|
|
679 | if (InternetQueryOption (0, INTERNET_OPTION_PROXY_PASSWORD, (void *)buffer, &buflen)) |
|
|
680 | PUSHs (newSVpv (buffer, 0)); |
|
|
681 | } |
|
|
682 | } |
|
|
683 | #endif |
|
|
684 | } |
637 | |
685 | |
638 | void |
686 | void |
639 | add_font (char *file) |
687 | add_font (char *file) |
640 | CODE: |
688 | CODE: |
641 | FcConfigAppFontAddFile (0, (const FcChar8 *)file); |
689 | FcConfigAppFontAddFile (0, (const FcChar8 *)file); |
… | |
… | |
1023 | PUSHs (sv_2mortal (newSViv (strong_pos.y / PANGO_SCALE))); |
1071 | PUSHs (sv_2mortal (newSViv (strong_pos.y / PANGO_SCALE))); |
1024 | PUSHs (sv_2mortal (newSViv (strong_pos.height / PANGO_SCALE))); |
1072 | PUSHs (sv_2mortal (newSViv (strong_pos.height / PANGO_SCALE))); |
1025 | } |
1073 | } |
1026 | |
1074 | |
1027 | void |
1075 | void |
1028 | render (CFPlus::Layout self, float x, float y) |
1076 | render (CFPlus::Layout self, float x, float y, int flags = 0) |
1029 | PPCODE: |
1077 | PPCODE: |
1030 | pango_opengl_render_layout_subpixel ( |
1078 | pango_opengl_render_layout_subpixel ( |
1031 | self->pl, |
1079 | self->pl, |
1032 | x * PANGO_SCALE, y * PANGO_SCALE, |
1080 | x * PANGO_SCALE, y * PANGO_SCALE, |
1033 | self->r, self->g, self->b, self->a |
1081 | self->r, self->g, self->b, self->a, |
|
|
1082 | flags |
1034 | ); |
1083 | ); |
1035 | |
1084 | |
1036 | MODULE = CFPlus PACKAGE = CFPlus::Texture |
1085 | MODULE = CFPlus PACKAGE = CFPlus::Texture |
1037 | |
1086 | |
1038 | void |
1087 | void |
… | |
… | |
1228 | void |
1277 | void |
1229 | scroll (CFPlus::Map self, int dx, int dy) |
1278 | scroll (CFPlus::Map self, int dx, int dy) |
1230 | CODE: |
1279 | CODE: |
1231 | { |
1280 | { |
1232 | if (dx > 0) |
1281 | if (dx > 0) |
1233 | map_blank (self, self->x, self->y, dx - 1, self->h); |
1282 | map_blank (self, self->x, self->y, dx, self->h); |
1234 | else if (dx < 0) |
1283 | else if (dx < 0) |
1235 | map_blank (self, self->x + self->w + dx + 1, self->y, 1 - dx, self->h); |
1284 | map_blank (self, self->x + self->w + dx + 1, self->y, -dx, self->h); |
1236 | |
1285 | |
1237 | if (dy > 0) |
1286 | if (dy > 0) |
1238 | map_blank (self, self->x, self->y, self->w, dy - 1); |
1287 | map_blank (self, self->x, self->y, self->w, dy); |
1239 | else if (dy < 0) |
1288 | else if (dy < 0) |
1240 | map_blank (self, self->x, self->y + self->h + dy + 1, self->w, 1 - dy); |
1289 | map_blank (self, self->x, self->y + self->h + dy + 1, self->w, -dy); |
1241 | |
1290 | |
1242 | self->ox += dx; self->x += dx; |
1291 | self->ox += dx; self->x += dx; |
1243 | self->oy += dy; self->y += dy; |
1292 | self->oy += dy; self->y += dy; |
1244 | |
1293 | |
1245 | while (self->y < 0) |
1294 | while (self->y < 0) |
… | |
… | |
1250 | self->y += MAP_EXTEND_Y; |
1299 | self->y += MAP_EXTEND_Y; |
1251 | } |
1300 | } |
1252 | } |
1301 | } |
1253 | |
1302 | |
1254 | void |
1303 | void |
1255 | map1a_update (CFPlus::Map self, SV *data_) |
1304 | map1a_update (CFPlus::Map self, SV *data_, int extmap) |
1256 | CODE: |
1305 | CODE: |
1257 | { |
1306 | { |
1258 | uint8_t *data = (uint8_t *)SvPVbyte_nolen (data_); |
1307 | uint8_t *data = (uint8_t *)SvPVbyte_nolen (data_); |
1259 | uint8_t *data_end = (uint8_t *)SvEND (data_); |
1308 | uint8_t *data_end = (uint8_t *)SvEND (data_); |
1260 | mapcell *cell; |
1309 | mapcell *cell; |
1261 | int x, y, flags; |
1310 | int x, y, flags; |
1262 | |
1311 | |
1263 | while (data < data_end) |
1312 | while (data < data_end - 1) |
1264 | { |
1313 | { |
1265 | flags = (data [0] << 8) + data [1]; data += 2; |
1314 | flags = (data [0] << 8) + data [1]; data += 2; |
1266 | |
1315 | |
1267 | x = self->x + ((flags >> 10) & 63); |
1316 | x = self->x + ((flags >> 10) & 63); |
1268 | y = self->y + ((flags >> 4) & 63); |
1317 | y = self->y + ((flags >> 4) & 63); |
1269 | |
1318 | |
1270 | cell = map_get_cell (self, x, y); |
1319 | cell = map_get_cell (self, x, y); |
1271 | |
1320 | |
1272 | if (flags & 15) |
1321 | if (flags & 15) |
1273 | { |
1322 | { |
1274 | if (cell->darkness < 0) |
1323 | if (!cell->darkness) |
1275 | { |
1324 | { |
|
|
1325 | memset (cell, 0, sizeof (*cell)); |
1276 | cell->darkness = 0; |
1326 | cell->darkness = 256; |
1277 | cell->face [0] = 0; |
|
|
1278 | cell->face [1] = 0; |
|
|
1279 | cell->face [2] = 0; |
|
|
1280 | } |
1327 | } |
1281 | |
1328 | |
1282 | cell->darkness = flags & 8 ? *data++ : 255; |
|
|
1283 | |
|
|
1284 | //TODO: don't trust server data to be in-range(!) |
1329 | //TODO: don't trust server data to be in-range(!) |
|
|
1330 | |
|
|
1331 | if (flags & 8) |
|
|
1332 | { |
|
|
1333 | if (extmap) |
|
|
1334 | { |
|
|
1335 | uint8_t ext, cmd; |
|
|
1336 | |
|
|
1337 | do |
|
|
1338 | { |
|
|
1339 | ext = *data++; |
|
|
1340 | cmd = ext & 0x3f; |
|
|
1341 | |
|
|
1342 | if (cmd < 4) |
|
|
1343 | cell->darkness = 255 - ext * 64 + 1; |
|
|
1344 | else if (cmd == 5) // health |
|
|
1345 | { |
|
|
1346 | cell->stat_width = 1; |
|
|
1347 | cell->stat_hp = *data++; |
|
|
1348 | } |
|
|
1349 | else if (cmd == 6) // monster width |
|
|
1350 | cell->stat_width = *data++ + 1; |
|
|
1351 | else if (cmd == 0x47) // monster width |
|
|
1352 | { |
|
|
1353 | if (*data == 4) |
|
|
1354 | ; // decode player tag |
|
|
1355 | |
|
|
1356 | data += *data + 1; |
|
|
1357 | } |
|
|
1358 | else if (cmd == 8) // cell flags |
|
|
1359 | cell->flags = *data++; |
|
|
1360 | else if (ext & 0x40) // unknown, multibyte => skip |
|
|
1361 | data += *data + 1; |
|
|
1362 | else |
|
|
1363 | data++; |
|
|
1364 | } |
|
|
1365 | while (ext & 0x80); |
|
|
1366 | } |
|
|
1367 | else |
|
|
1368 | cell->darkness = *data++ + 1; |
|
|
1369 | } |
1285 | |
1370 | |
1286 | if (flags & 4) |
1371 | if (flags & 4) |
1287 | { |
1372 | { |
1288 | cell->face [0] = self->face [(data [0] << 8) + data [1]]; data += 2; |
1373 | cell->face [0] = self->face [(data [0] << 8) + data [1]]; data += 2; |
1289 | } |
1374 | } |
… | |
… | |
1297 | { |
1382 | { |
1298 | cell->face [2] = self->face [(data [0] << 8) + data [1]]; data += 2; |
1383 | cell->face [2] = self->face [(data [0] << 8) + data [1]]; data += 2; |
1299 | } |
1384 | } |
1300 | } |
1385 | } |
1301 | else |
1386 | else |
1302 | cell->darkness = -1; |
1387 | cell->darkness = 0; |
1303 | } |
1388 | } |
1304 | } |
1389 | } |
1305 | |
1390 | |
1306 | SV * |
1391 | SV * |
1307 | mapmap (CFPlus::Map self, int x0, int y0, int w, int h) |
1392 | mapmap (CFPlus::Map self, int x0, int y0, int w, int h) |
… | |
… | |
1407 | { |
1492 | { |
1408 | mapcell *cell = row->col + (x + vx - row->c0); |
1493 | mapcell *cell = row->col + (x + vx - row->c0); |
1409 | |
1494 | |
1410 | face = cell->face [z]; |
1495 | face = cell->face [z]; |
1411 | |
1496 | |
1412 | if (face) |
1497 | if (face && face < self->texs) |
1413 | { |
1498 | { |
1414 | maptex tex = self->tex [face]; |
1499 | maptex tex = self->tex [face]; |
1415 | |
|
|
1416 | int px = (x + 1) * 32 - tex.w; |
1500 | int px = (x + 1) * 32 - tex.w; |
1417 | int py = (y + 1) * 32 - tex.h; |
1501 | int py = (y + 1) * 32 - tex.h; |
1418 | |
1502 | |
1419 | if (last_name != tex.name) |
1503 | if (last_name != tex.name) |
1420 | { |
1504 | { |
1421 | glEnd (); |
1505 | glEnd (); |
1422 | last_name = tex.name; |
|
|
1423 | glBindTexture (GL_TEXTURE_2D, last_name); |
1506 | glBindTexture (GL_TEXTURE_2D, last_name = tex.name); |
1424 | glBegin (GL_QUADS); |
1507 | glBegin (GL_QUADS); |
1425 | } |
1508 | } |
1426 | |
1509 | |
1427 | glTexCoord2f (0 , 0 ); glVertex2f (px , py ); |
1510 | glTexCoord2f (0 , 0 ); glVertex2f (px , py ); |
1428 | glTexCoord2f (0 , tex.t); glVertex2f (px , py + tex.h); |
1511 | glTexCoord2f (0 , tex.t); glVertex2f (px , py + tex.h); |
1429 | glTexCoord2f (tex.s, tex.t); glVertex2f (px + tex.w, py + tex.h); |
1512 | glTexCoord2f (tex.s, tex.t); glVertex2f (px + tex.w, py + tex.h); |
1430 | glTexCoord2f (tex.s, 0 ); glVertex2f (px + tex.w, py ); |
1513 | glTexCoord2f (tex.s, 0 ); glVertex2f (px + tex.w, py ); |
1431 | } |
1514 | } |
|
|
1515 | |
|
|
1516 | if (cell->flags && z == 2) |
|
|
1517 | { |
|
|
1518 | if (cell->flags & 1) |
|
|
1519 | { |
|
|
1520 | maptex tex = self->tex [1]; |
|
|
1521 | int px = (x + 1) * 32 - tex.w + 2; |
|
|
1522 | int py = (y + 1) * 32 - tex.h - 6; |
|
|
1523 | |
|
|
1524 | glEnd (); |
|
|
1525 | glBindTexture (GL_TEXTURE_2D, last_name = tex.name); |
|
|
1526 | glBegin (GL_QUADS); |
|
|
1527 | |
|
|
1528 | glTexCoord2f (0 , 0 ); glVertex2f (px , py ); |
|
|
1529 | glTexCoord2f (0 , tex.t); glVertex2f (px , py + tex.h); |
|
|
1530 | glTexCoord2f (tex.s, tex.t); glVertex2f (px + tex.w, py + tex.h); |
|
|
1531 | glTexCoord2f (tex.s, 0 ); glVertex2f (px + tex.w, py ); |
|
|
1532 | } |
|
|
1533 | } |
1432 | } |
1534 | } |
1433 | } |
1535 | } |
1434 | |
1536 | |
1435 | glEnd (); |
1537 | glEnd (); |
1436 | |
1538 | |
1437 | glDisable (GL_TEXTURE_2D); |
1539 | glDisable (GL_TEXTURE_2D); |
1438 | glDisable (GL_BLEND); |
1540 | glDisable (GL_BLEND); |
|
|
1541 | |
|
|
1542 | // top layer: overlays such as the health bar |
|
|
1543 | for (y = 0; y < sh; y++) |
|
|
1544 | if (0 <= y + vy && y + vy < self->rows) |
|
|
1545 | { |
|
|
1546 | maprow *row = self->row + (y + vy); |
|
|
1547 | |
|
|
1548 | for (x = 0; x < sw; x++) |
|
|
1549 | if (row->c0 <= x + vx && x + vx < row->c1) |
|
|
1550 | { |
|
|
1551 | mapcell *cell = row->col + (x + vx - row->c0); |
|
|
1552 | |
|
|
1553 | int px = x * 32; |
|
|
1554 | int py = y * 32; |
|
|
1555 | |
|
|
1556 | if (cell->stat_hp) |
|
|
1557 | { |
|
|
1558 | int width = cell->stat_width * 32; |
|
|
1559 | int thick = sh / 28 + 1 + cell->stat_width; |
|
|
1560 | |
|
|
1561 | glColor3ub (0, 0, 0); |
|
|
1562 | glRectf (px + 1, py - thick - 2, |
|
|
1563 | px + width - 1, py); |
|
|
1564 | |
|
|
1565 | glColor3ub (cell->stat_hp, 255 - cell->stat_hp, 0); |
|
|
1566 | glRectf (px + 2, |
|
|
1567 | py - thick - 1, |
|
|
1568 | px + width - 2 - cell->stat_hp * (width - 4) / 255, py - 1); |
|
|
1569 | } |
|
|
1570 | } |
|
|
1571 | } |
1439 | } |
1572 | } |
1440 | |
1573 | |
1441 | void |
1574 | void |
1442 | draw_magicmap (CFPlus::Map self, int dx, int dy, int w, int h, unsigned char *data) |
1575 | draw_magicmap (CFPlus::Map self, int dx, int dy, int w, int h, unsigned char *data) |
1443 | CODE: |
1576 | CODE: |
… | |
… | |
1523 | for (x = 0; x < sw; x++) |
1656 | for (x = 0; x < sw; x++) |
1524 | if (row->c0 <= x + vx && x + vx < row->c1) |
1657 | if (row->c0 <= x + vx && x + vx < row->c1) |
1525 | { |
1658 | { |
1526 | mapcell *cell = row->col + (x + vx - row->c0); |
1659 | mapcell *cell = row->col + (x + vx - row->c0); |
1527 | |
1660 | |
1528 | darkness[y * sw4 + x] = cell->darkness < 0 |
1661 | darkness[y * sw4 + x] = cell->darkness |
|
|
1662 | ? 255 - (cell->darkness - 1) |
1529 | ? 255 - FOW_DARKNESS |
1663 | : 255 - FOW_DARKNESS; |
1530 | : 255 - cell->darkness; |
|
|
1531 | } |
1664 | } |
1532 | } |
1665 | } |
1533 | |
1666 | |
1534 | EXTEND (SP, 3); |
1667 | EXTEND (SP, 3); |
1535 | PUSHs (sv_2mortal (newSViv (sw4))); |
1668 | PUSHs (sv_2mortal (newSViv (sw4))); |
… | |
… | |
1650 | |
1783 | |
1651 | if (flags & 1) { face[0] = *data++ << 8; face[0] |= *data++; } |
1784 | if (flags & 1) { face[0] = *data++ << 8; face[0] |= *data++; } |
1652 | if (flags & 2) { face[1] = *data++ << 8; face[1] |= *data++; } |
1785 | if (flags & 2) { face[1] = *data++ << 8; face[1] |= *data++; } |
1653 | if (flags & 4) { face[2] = *data++ << 8; face[2] |= *data++; } |
1786 | if (flags & 4) { face[2] = *data++ << 8; face[2] |= *data++; } |
1654 | |
1787 | |
1655 | if (cell->darkness <= 0) |
1788 | if (cell->darkness == 0) |
1656 | { |
1789 | { |
1657 | cell->darkness = -1; |
1790 | cell->darkness = 0; |
1658 | |
1791 | |
1659 | for (z = 0; z <= 2; z++) |
1792 | for (z = 0; z <= 2; z++) |
1660 | { |
1793 | { |
1661 | cell->face[z] = face[z]; |
1794 | cell->face[z] = face[z]; |
1662 | |
1795 | |
… | |
… | |
1800 | const_iv (GL_SEPARABLE_2D), |
1933 | const_iv (GL_SEPARABLE_2D), |
1801 | const_iv (GL_CONVOLUTION_2D), |
1934 | const_iv (GL_CONVOLUTION_2D), |
1802 | const_iv (GL_CONVOLUTION_BORDER_MODE), |
1935 | const_iv (GL_CONVOLUTION_BORDER_MODE), |
1803 | const_iv (GL_CONSTANT_BORDER), |
1936 | const_iv (GL_CONSTANT_BORDER), |
1804 | const_iv (GL_LINES), |
1937 | const_iv (GL_LINES), |
|
|
1938 | const_iv (GL_LINE_STRIP), |
1805 | const_iv (GL_LINE_LOOP), |
1939 | const_iv (GL_LINE_LOOP), |
1806 | const_iv (GL_QUADS), |
1940 | const_iv (GL_QUADS), |
1807 | const_iv (GL_QUAD_STRIP), |
1941 | const_iv (GL_QUAD_STRIP), |
1808 | const_iv (GL_TRIANGLES), |
1942 | const_iv (GL_TRIANGLES), |
1809 | const_iv (GL_TRIANGLE_STRIP), |
1943 | const_iv (GL_TRIANGLE_STRIP), |
… | |
… | |
2006 | |
2140 | |
2007 | void glEndList () |
2141 | void glEndList () |
2008 | |
2142 | |
2009 | void glCallList (int list) |
2143 | void glCallList (int list) |
2010 | |
2144 | |
2011 | |
|
|