Changeset 86 for trunk/orca
- Timestamp:
- 03/11/06 17:42:43 (3 years ago)
- Location:
- trunk/orca
- Files:
-
- 5 modified
-
gl/dlist.c (modified) (1 diff)
-
gl/gx.c (modified) (28 diffs)
-
gl/ttf_load.c (modified) (1 diff)
-
ovalue.h (modified) (1 diff)
-
qt/qorca.cpp (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/gl/dlist.c
r69 r86 490 490 Compile render program. 491 491 */ 492 void renderProgramNative( OValue* a1)492 OR_NATIVE_PUB( renderProgramNative ) 493 493 { 494 494 OValue* error; -
trunk/orca/gl/gx.c
r54 r86 664 664 665 665 666 void compileNative( OValue* a1)666 OR_NATIVE( compileNative ) 667 667 { 668 668 OBlock* blk; … … 700 700 701 701 702 void callNative( OValue* a1)702 OR_NATIVE( callNative ) 703 703 { 704 704 if( a1->type == OT_INTEGER ) … … 715 715 716 716 717 void displayNative( OValue* a1)717 OR_NATIVE( displayNative ) 718 718 { 719 719 GLViewMode mode; … … 762 762 763 763 764 void displayModesNative( OValue* a1)764 OR_NATIVE( displayModesNative ) 765 765 { 766 766 OBlock* blk; … … 1007 1007 #define colorU8ToF(n) (((GLfloat) n) / 255.0f) 1008 1008 1009 void clearColorNative( OValue* a1)1009 OR_NATIVE( clearColorNative ) 1010 1010 { 1011 1011 switch( a1->type ) … … 1035 1035 #define RELEASE(h) if( orHoldIsValid(h) ) orRelease(h) 1036 1036 1037 void execNative( OValue* a1)1037 OR_NATIVE( execNative ) 1038 1038 { 1039 1039 #ifdef PERF_CLOCK … … 1090 1090 1091 1091 1092 void playNative( OValue* a1)1092 OR_NATIVE( playNative ) 1093 1093 { 1094 1094 if( a1->type == OT_FILE ) … … 1160 1160 center [none! matrix! vec3!] 1161 1161 */ 1162 void orthoViewNative( OValue* a1)1162 OR_NATIVE( orthoViewNative ) 1163 1163 { 1164 1164 OBlock* vblk; … … 1222 1222 1223 1223 1224 void viewportNative( OValue* a1)1224 OR_NATIVE( viewportNative ) 1225 1225 { 1226 1226 OBlock* vblk; … … 1264 1264 1265 1265 1266 void renderStateNative( OValue* a1)1266 OR_NATIVE( renderStateNative ) 1267 1267 { 1268 1268 if( a1->type == OT_WORD ) … … 1294 1294 1295 1295 1296 void renderTextNative( OValue* a1)1296 OR_NATIVE( renderTextNative ) 1297 1297 { 1298 1298 FontResource* fnt; … … 1321 1321 1322 1322 1323 void pushNative( OValue* a1)1323 OR_NATIVE( pushNative ) 1324 1324 { 1325 1325 (void) a1; … … 1328 1328 1329 1329 1330 void popNative( OValue* a1)1330 OR_NATIVE( popNative ) 1331 1331 { 1332 1332 (void) a1; … … 1335 1335 1336 1336 1337 void translateNative( OValue* a1)1337 OR_NATIVE( translateNative ) 1338 1338 { 1339 1339 GLdouble n[3]; … … 1345 1345 1346 1346 #if 0 1347 void rotateNative( OValue* a1)1347 OR_NATIVE( rotateNative ) 1348 1348 { 1349 1349 GLdouble n[4]; … … 1354 1354 1355 1355 1356 void scaleNative( OValue* a1)1356 OR_NATIVE( scaleNative ) 1357 1357 { 1358 1358 GLdouble n[3]; … … 1362 1362 1363 1363 1364 void pushMatrixNative( OValue* a1)1364 OR_NATIVE( pushMatrixNative ) 1365 1365 { 1366 1366 OString* arr = orSTRING(a1); … … 1371 1371 1372 1372 1373 void moveNative( OValue* a1)1373 OR_NATIVE( moveNative ) 1374 1374 { 1375 1375 if( a1->type == OT_MATRIX ) … … 1400 1400 1401 1401 1402 void rotateNative( OValue* a1)1402 OR_NATIVE( rotateNative ) 1403 1403 { 1404 1404 double angle; … … 1427 1427 1428 1428 1429 void keyRepeatNative( OValue* a1)1429 OR_NATIVE( keyRepeatNative ) 1430 1430 { 1431 1431 glv_filterRepeatKeys( gView, orInt(a1) ); … … 1464 1464 1465 1465 1466 void screengrabNative( OValue* a1)1466 OR_NATIVE( screengrabNative ) 1467 1467 { 1468 1468 OBinary* bin; … … 1492 1492 1493 1493 1494 void mouseHandlerNative( OValue* a1)1494 OR_NATIVE( mouseHandlerNative ) 1495 1495 { 1496 1496 orBind( orBLOCK(a1), &gEnv.input_ctx ); … … 1498 1498 1499 1499 1500 void keyHandlerNative( OValue* a1)1500 OR_NATIVE( keyHandlerNative ) 1501 1501 { 1502 1502 if( validKeyHandlerBlock( a1->index, a1->series.it ) ) … … 1541 1541 1542 1542 1543 void hashNative( OValue* a1)1543 OR_NATIVE( hashNative ) 1544 1544 { 1545 1545 uint32_t key = gxHashString(a1); … … 1548 1548 1549 1549 1550 void resourceNative( OValue* a1)1550 OR_NATIVE( resourceNative ) 1551 1551 { 1552 1552 uint32_t key; … … 1574 1574 #define REF_RG_FREE a1+1 1575 1575 1576 void resourceGroupNative( OValue* a1)1576 OR_NATIVE( resourceGroupNative ) 1577 1577 { 1578 1578 uint16_t id; … … 1591 1591 1592 1592 // This must go when 'save is added to the core library. 1593 void saveNative( OValue* a1)1593 OR_NATIVE( saveNative ) 1594 1594 { 1595 1595 FILE* fp; … … 1619 1619 1620 1620 1621 void toImageNative( OValue* a1)1621 OR_NATIVE( toImageNative ) 1622 1622 { 1623 1623 if( a1->RESTYPE == RES_TYPE_FONT ) -
trunk/orca/gl/ttf_load.c
r54 r86 621 621 ] 622 622 */ 623 void makeTexfontNative( OValue* a1)623 OR_NATIVE_PUB( makeTexfontNative ) 624 624 { 625 625 OValue* arg; -
trunk/orca/ovalue.h
r68 r86 596 596 _or_result->num.decimal = v;} 597 597 598 #define OR_NATIVE(func) static void func( OValue* a1 ) 599 #define OR_NATIVE_PUB(func) void func( OValue* a1 ) 600 598 601 #define OR_CTERM_LEN 1 599 602 -
trunk/orca/qt/qorca.cpp
r62 r86 691 691 692 692 693 static void execNative( OValue* a1)693 OR_NATIVE( execNative ) 694 694 { 695 695 if( a1->type == OT_INTEGER ) … … 760 760 761 761 762 static void execExitNative( OValue* a1)762 OR_NATIVE( execExitNative ) 763 763 { 764 764 execExit( qEnv.atom_exec_exit, a1 ); … … 766 766 767 767 768 static void closeNative( OValue* a1)768 OR_NATIVE( closeNative ) 769 769 { 770 770 execExit( qEnv.atom_close, a1 ); … … 772 772 773 773 774 static void showNative( OValue* a1)774 OR_NATIVE( showNative ) 775 775 { 776 776 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 823 823 824 824 825 static void dialogNative( OValue* a1)825 OR_NATIVE( dialogNative ) 826 826 { 827 827 SDialog* dlg = new SDialog; … … 834 834 835 835 836 static void widgetNative( OValue* a1)836 OR_NATIVE( widgetNative ) 837 837 { 838 838 SWidget* wid = new SWidget; … … 844 844 845 845 846 static void destroyNative( OValue* a1)846 OR_NATIVE( destroyNative ) 847 847 { 848 848 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 860 860 #define REF_RF_PATH a1+4 861 861 862 static void requestFileNative( OValue* a1)862 OR_NATIVE( requestFileNative ) 863 863 { 864 864 QString fn; … … 909 909 910 910 911 static void enableNative( OValue* a1)911 OR_NATIVE( enableNative ) 912 912 { 913 913 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 917 917 918 918 919 static void disableNative( OValue* a1)919 OR_NATIVE( disableNative ) 920 920 { 921 921 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 925 925 926 926 927 static void widgetValueNative( OValue* a1)927 OR_NATIVE( widgetValueNative ) 928 928 { 929 929 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 991 991 992 992 993 static void setWidgetValueNative( OValue* a1)993 OR_NATIVE( setWidgetValueNative ) 994 994 { 995 995 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 1067 1067 1068 1068 1069 static void appendTextNative( OValue* a1)1069 OR_NATIVE( appendTextNative ) 1070 1070 { 1071 1071 WIDPool::REC* rec = qEnv.pool.record( a1->integer ); … … 1112 1112 1113 1113 1114 static void messageNative( OValue* a1)1114 OR_NATIVE( messageNative ) 1115 1115 { 1116 1116 #define REF_MSG_WARN a1+2 … … 1241 1241 #ifdef DIR_WATCHER 1242 1242 extern void watchDirNative( OValue* ); 1243 extern void spawnNative( OValue* ); 1243 1244 orNative( (void*) watchDirNative, "watch-dir" ); 1245 orNative( (void*) spawnNative, "spawn" ); 1244 1246 #endif 1245 1247
