69 SScene* scene = MMgetPointer<SScene*>(m, MTOP(s));
77 std::string tmpCameraName(MMstartstr(m, MTOP(name)));
81 cam = scene->CreateCamera(tmpCameraName);
83 catch(Ogre::Exception &e)
85 MMechostr(MSKDEBUG,
"An exception has occurred : %s\n",e.what());
108 MMechostr(MSKDEBUG,
"SO3CameraLookAt\n");
112 int cam = MMget(m, 0);
113 if((cam==NIL)||(vec==NIL))
119 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
126 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
132 SCamera* camera =
static_cast<SCamera*
>(node);
134 if((MMfetch(m,MTOP(vec),0)==NIL) || (MMfetch(m,MTOP(vec),1)==NIL) || (MMfetch(m,MTOP(vec),2)==NIL))
140 Ogre::Vector3 vecteur(MTOF(MMfetch(m, MTOP(vec), 0)),
141 MTOF(MMfetch(m, MTOP(vec), 1)),
142 MTOF(MMfetch(m, MTOP(vec), 2)));
144 camera->LookAt(vecteur, SNode::SO3_WORLD_TS, Ogre::Vector3::NEGATIVE_UNIT_Z);
146 MMset(m, 0, ITOM(1));
163 MMechostr(MSKDEBUG,
"SO3CameraGetDirection\n");
166 int cam = MMget(m, 0);
173 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
180 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
186 SCamera* camera =
static_cast<SCamera*
>(node);
189 Ogre::Vector3 dirvec(camera->GetDirection());
190 int tuple = MMmalloc(m, 3, TYPETAB);
197 MMstore(m, tuple, 0, FTOM((dirvec.x)));
198 MMstore(m, tuple, 1, FTOM((dirvec.y)));
199 MMstore(m, tuple, 2, FTOM((dirvec.z)));
200 MMset(m, 0, PTOM(tuple));
217 MMechostr(MSKDEBUG,
"SO3CameraGetDerivedDirection\n");
220 int cam = MMget(m, 0);
227 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
234 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
240 SCamera* camera =
static_cast<SCamera*
>(node);
242 Ogre::Vector3 vecteur(camera->GetDirection(
true));
243 int tuple = MMmalloc(m, 3, TYPETAB);
250 MMstore(m, tuple, 0, FTOM((vecteur.x)));
251 MMstore(m, tuple, 1, FTOM((vecteur.y)));
252 MMstore(m, tuple, 2, FTOM((vecteur.z)));
253 MMset(m, 0, PTOM(tuple));
270 MMechostr(MSKDEBUG,
"SO3CameraGetDerivedUp\n");
273 int cam = MMget(m, 0);
280 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
287 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
293 SCamera* camera =
static_cast<SCamera*
>(node);
296 Ogre::Vector3 vecteur(camera->GetOgreCameraPointer()->getDerivedUp());
297 int tuple = MMmalloc(m, 3, TYPETAB);
304 MMstore(m, tuple, 0, FTOM((vecteur.x)));
305 MMstore(m, tuple, 1, FTOM((vecteur.y)));
306 MMstore(m, tuple, 2, FTOM((vecteur.z)));
307 MMset(m, 0, PTOM(tuple));
323 MMechostr(MSKDEBUG,
"SO3CameraGetTriangleCount\n");
326 int cam = MMget(m, 0);
333 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
340 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
346 SCamera* camera =
static_cast<SCamera*
>(node);
347 MMset(m, 0, ITOM(camera->GetNumRenderedFaces()));
363 MMechostr(MSKDEBUG,
"SO3CameraGetBatchCount\n");
366 int cam = MMget(m, 0);
373 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
380 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
386 SCamera* camera =
static_cast<SCamera*
>(node);
387 MMset(m, 0, ITOM(camera->GetNumRenderedBatches()));
404 MMechostr(MSKDEBUG,
"SO3CameraSetViewport\n");
410 int vp = MMget(m, 0);
412 if((vp==NIL)||(cam==NIL))
418 SViewPort* viewport = MMgetPointer<SViewPort*>(m, MTOP(vp));
426 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
433 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
439 SCamera* camera =
static_cast<SCamera*
>(node);
440 viewport->SetCamera(camera);
442 MMset(m, 0, ITOM(1));
459 MMechostr(MSKDEBUG,
"SO3CameraSetFocalLength\n");
463 int cam = MMget(m, 0);
465 if((cam==NIL)||(f==NIL))
471 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
478 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
484 SCamera* camera =
static_cast<SCamera*
>(node);
491 camera->SetFocalLength(MTOF(f));
492 MMset(m, 0, ITOM(1));
508 MMechostr(MSKDEBUG,
"SO3CameraGetFocalLength\n");
511 int cam = MMget(m, 0);
518 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
525 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
531 SCamera* camera =
static_cast<SCamera*
>(node);
532 float f = camera->GetFocalLength();
533 MMset(m, 0, FTOM(f));
550 MMechostr(MSKDEBUG,
"SO3CameraSetFOVy\n");
553 int fovy = MMpull(m);
554 int cam = MMget(m, 0);
555 if((cam==NIL)||(fovy==NIL))
561 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
568 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
574 SCamera* camera =
static_cast<SCamera*
>(node);
575 camera->SetFOVy(MTOF(fovy));
576 MMset(m, 0, ITOM(1));
593 MMechostr(MSKDEBUG,
"SO3CameraSetLODbias\n");
596 int ibias = MMpull(m);
597 int cam = MMget(m, 0);
604 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
611 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
617 SCamera* camera =
static_cast<SCamera*
>(node);
629 camera->SetLODbias(bias);
631 MMset(m, 0, ITOM(1));
647 MMechostr(MSKDEBUG,
"SO3CameraSetAspectRatio\n");
650 int ratio = MMpull(m);
651 int cam = MMget(m, 0);
652 if((cam==NIL)||(ratio==NIL))
658 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
665 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
671 SCamera* camera =
static_cast<SCamera*
>(node);
672 camera->SetAspectRatio(MTOF(ratio));
673 MMset(m, 0, ITOM(1));
688 MMechostr(MSKDEBUG,
"SO3CameraGetAspectRatio\n");
691 int cam = MMget(m, 0);
698 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
705 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
711 SCamera* camera =
static_cast<SCamera*
>(node);
712 MMset(m, 0, FTOM(camera->GetAspectRatio()));
728 MMechostr(MSKDEBUG,
"SO3CameraSetAutoAspectRatio\n");
731 int istate = MMpull(m);
732 int cam = MMget(m, 0);
739 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
746 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
753 if (istate != NIL && ITOM(istate) >= 0)
756 SCamera* camera =
static_cast<SCamera*
>(node);
757 camera->SetAutoAspectRatio(state);
759 MMset(m, 0, ITOM(1));
777 MMechostr(MSKDEBUG,
"SO3CameraSetFrustumOffset\n");
780 int yoffest = MMpull(m);
781 int xoffest = MMpull(m);
782 int cam = MMget(m, 0);
789 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
796 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
802 SCamera* camera =
static_cast<SCamera*
>(node);
811 camera->SetFrustumOffset(x, y);
812 MMset(m, 0, ITOM(1));
827 MMechostr(MSKDEBUG,
"SO3CameraGetFrustumOffset\n");
830 int cam = MMget(m, 0);
837 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
844 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
850 SCamera* camera =
static_cast<SCamera*
>(node);
851 Ogre::Vector2 offset = camera->GetFrustumOffset();
853 int tuple = MMmalloc(m, 2, TYPETAB);
860 MMstore(m, tuple, 0, FTOM(offset.x));
861 MMstore(m, tuple, 1, FTOM(offset.y));
862 MMset(m, 0, PTOM(tuple));
878 MMechostr(MSKDEBUG,
"SO3CameraGetFOVy\n");
881 int cam = MMget(m, 0);
888 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
895 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
901 SCamera* camera =
static_cast<SCamera*
>(node);
902 float fovy = camera->GetFOVy();
903 MMset(m, 0, FTOM(fovy));
919 MMechostr(MSKDEBUG,
"SO3CameraGetLODbias\n");
922 int cam = MMget(m, 0);
929 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
936 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
942 SCamera* camera =
static_cast<SCamera*
>(node);
943 float bias = camera->GetLODbias();
945 MMset(m, 0, FTOM(bias));
967 MMechostr(MSKDEBUG,
"SO3CameraSetPolygonMode\n");
970 int b = MTOI(MMpull(m));
971 int cam = MMget(m, 0);
972 if((cam==NIL) || (b==NIL))
978 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
985 if(node->GetNodeType() != SNode::CAMERA_TYPE_ID)
991 SCamera* camera =
static_cast<SCamera*
>(node);
994 if(b==SO3_POLY_POINTS)
995 camera->GetOgreCameraPointer()->setPolygonMode(Ogre::PM_POINTS);
996 else if(b==SO3_POLY_SOLID)
997 camera->GetOgreCameraPointer()->setPolygonMode(Ogre::PM_SOLID);
998 if(b==SO3_POLY_WIREFRAME)
999 camera->GetOgreCameraPointer()->setPolygonMode(Ogre::PM_WIREFRAME);
1001 MMset(m, 0, ITOM(1));
1022 MMechostr(MSKDEBUG,
"SO3CameraGetPolygonMode\n");
1025 int cam = MMget(m, 0);
1032 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1039 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1045 SCamera* camera =
static_cast<SCamera*
>(node);
1048 if(camera->GetOgreCameraPointer()->getPolygonMode() == Ogre::PM_POINTS)
1049 MMset(m, 0, ITOM(SO3_POLY_POINTS));
1050 else if(camera->GetOgreCameraPointer()->getPolygonMode() == Ogre::PM_SOLID)
1051 MMset(m, 0, ITOM(SO3_POLY_SOLID));
1052 else if(camera->GetOgreCameraPointer()->getPolygonMode() == Ogre::PM_WIREFRAME)
1053 MMset(m, 0, ITOM(SO3_POLY_WIREFRAME));
1077 MMechostr(MSKDEBUG,
"SO3CameraSetProjectionType\n");
1080 int b = MTOI(MMpull(m));
1081 int cam = MMget(m, 0);
1082 if((cam==NIL) || (b==NIL))
1088 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1095 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1101 SCamera* camera =
static_cast<SCamera*
>(node);
1104 if(b==SO3_PROJECTION_PERSPECTIVE)
1105 camera->SetProjectionType(Ogre::PT_PERSPECTIVE);
1106 else if(b==SO3_PROJECTION_ORTHOGRAPHIC)
1107 camera->SetProjectionType(Ogre::PT_ORTHOGRAPHIC);
1109 MMset(m, 0, ITOM(1));
1129 MMechostr(MSKDEBUG,
"SO3CameraGetProjectionType\n");
1132 int cam = MMget(m, 0);
1139 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1146 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1152 SCamera* camera =
static_cast<SCamera*
>(node);
1155 if(camera->GetProjectionType() == Ogre::PT_PERSPECTIVE)
1156 MMset(m, 0, ITOM(SO3_PROJECTION_PERSPECTIVE));
1157 else if(camera->GetProjectionType() == Ogre::PT_ORTHOGRAPHIC)
1158 MMset(m, 0, ITOM(SO3_PROJECTION_ORTHOGRAPHIC));
1179 MMechostr(MSKDEBUG,
"SO3CameraSetOrthoWindow\n");
1182 int height = MMpull(m);
1183 int width = MMpull(m);
1184 int cam = MMget(m, 0);
1185 if((cam==NIL)||(width==NIL)||(height==NIL))
1191 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1198 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1204 SCamera* camera =
static_cast<SCamera*
>(node);
1205 camera->SetOrthoWindow(SPoint<float>(MTOF(width), MTOF(height)));
1207 MMset(m, 0, ITOM(1));
1224 MMechostr(MSKDEBUG,
"SO3CameraGetOrthoWindow\n");
1227 int cam = MMget(m, 0);
1234 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1241 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1247 SCamera* camera =
static_cast<SCamera*
>(node);
1249 SPoint<float> size = camera->GetOrthoWindow();
1250 int tuple = MMmalloc(m, 2, TYPETAB);
1257 MMstore(m, tuple, 0, FTOM(size.x));
1258 MMstore(m, tuple, 1, FTOM(size.y));
1259 MMset(m, 0, PTOM(tuple));
1277 MMechostr(MSKDEBUG,
"SO3CameraSetNearClipDistance\n");
1281 int cam = MMget(m, 0);
1282 if((cam==NIL)||(n==NIL))
1288 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1295 if(node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1301 SCamera* camera =
static_cast<SCamera*
>(node);
1309 camera->SetNearClipDistance(MTOF(n));
1311 MMset(m, 0, ITOM(1));
1327 MMechostr(MSKDEBUG,
"SO3CameraGetNearClipDistance\n");
1330 int cam = MMget(m, 0);
1337 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1344 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1350 SCamera* camera =
static_cast<SCamera*
>(node);
1352 MMset(m, 0, FTOM(camera->GetNearClipDistance()));
1370 MMechostr(MSKDEBUG,
"SO3CameraSetFarClipDistance\n");
1373 int val = MMpull(m);
1374 int cam = MMget(m, 0);
1375 if((cam==NIL)||(val==NIL))
1381 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1388 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1394 SCamera* camera =
static_cast<SCamera*
>(node);
1396 camera->SetFarClipDistance(MTOF(val));
1397 MMset(m, 0, ITOM(1));
1413 MMechostr(MSKDEBUG,
"SO3CameraGetFarClipDistance\n");
1416 int cam = MMget(m, 0);
1423 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1430 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1436 SCamera* camera =
static_cast<SCamera*
>(node);
1438 MMset(m, 0, FTOM(camera->GetFarClipDistance()));
1455 MMechostr(MSKDEBUG,
"SO3CameraGetViewport\n");
1458 int cam = MMget(m, 0);
1465 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1472 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1478 SCamera* camera =
static_cast<SCamera*
>(node);
1480 SViewPort* viewport = camera->getCurrentViewPort();
1487 int vp = OBJfindTH(m,
SO3VPTYPE, SCOL_PTR (viewport));
1489 vp = MMfetch(m, vp, OFFOBJMAG);
1507 MMechostr(MSKDEBUG,
"SO3CameraGetNumRenderedFaces\n");
1510 int cam = MMget(m, 0);
1517 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1524 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1530 SCamera* camera =
static_cast<SCamera*
>(node);
1533 int nb = camera->GetOgreCameraPointer()->_getNumRenderedFaces();
1534 MMset(m, 0, ITOM(nb));
1551 MMechostr(MSKDEBUG,
"SO3CameraSetProjectionMatrix\n");
1554 int imat = MMpull(m);
1555 int cam = MMget(m, 0);
1562 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1569 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1575 SCamera* camera =
static_cast<SCamera*
>(node);
1584 int imat0 = MMfetch(m, MTOP(imat), 0);
1585 int imat1 = MMfetch(m, MTOP(imat), 1);
1586 int imat2 = MMfetch(m, MTOP(imat), 2);
1587 int imat3 = MMfetch(m, MTOP(imat), 3);
1589 Ogre::Matrix4 projmat(MTOF(MMfetch(m, MTOP(imat0), 0)), MTOF(MMfetch(m, MTOP(imat0), 1)), MTOF(MMfetch(m, MTOP(imat0), 2)), MTOF(MMfetch(m, MTOP(imat0), 3)),
1590 MTOF(MMfetch(m, MTOP(imat1), 0)), MTOF(MMfetch(m, MTOP(imat1), 1)), MTOF(MMfetch(m, MTOP(imat1), 2)), MTOF(MMfetch(m, MTOP(imat1), 3)),
1591 MTOF(MMfetch(m, MTOP(imat2), 0)), MTOF(MMfetch(m, MTOP(imat2), 1)), MTOF(MMfetch(m, MTOP(imat2), 2)), MTOF(MMfetch(m, MTOP(imat2), 3)),
1592 MTOF(MMfetch(m, MTOP(imat3), 0)), MTOF(MMfetch(m, MTOP(imat3), 1)), MTOF(MMfetch(m, MTOP(imat3), 2)), MTOF(MMfetch(m, MTOP(imat3), 3)));
1596 camera->SetCustomProjectionMatrix(
true, projmat);
1598 catch(Ogre::Exception &e)
1600 MMechostr(MSKDEBUG,
"SO3CameraSetProjectionMatrix matrix error : %s\n", e.what());
1607 camera->SetCustomProjectionMatrix(
false);
1609 catch(Ogre::Exception &e)
1611 MMechostr(MSKDEBUG,
"SO3CameraSetProjectionMatrix matrix error : %s\n", e.what());
1615 MMset(m, 0, ITOM(1));
1630 MMechostr(MSKDEBUG,
"SO3CameraGetProjectionMatrix\n");
1633 int cam = MMget(m, 0);
1640 SNode* node = MMgetPointer<SNode*>(m, MTOP(cam));
1647 if (node->GetNodeType() != SNode::CAMERA_TYPE_ID)
1653 SCamera* camera =
static_cast<SCamera*
>(node);
1660 Ogre::Matrix4 proj_mat = camera->GetProjectionMatrix();
1662 int tupleMat = MMmalloc(m, 4, TYPETAB);
1669 int tupleMat0 = MMmalloc(m, 4, TYPETAB);
1676 MMstore(m, tupleMat0, 0, FTOM(
static_cast<float>(proj_mat[0][0])));
1677 MMstore(m, tupleMat0, 1, FTOM(
static_cast<float>(proj_mat[0][1])));
1678 MMstore(m, tupleMat0, 2, FTOM(
static_cast<float>(proj_mat[0][2])));
1679 MMstore(m, tupleMat0, 3, FTOM(
static_cast<float>(proj_mat[0][3])));
1680 MMpush(m, PTOM(tupleMat0));
1682 int tupleMat1 = MMmalloc(m, 4, TYPETAB);
1689 MMstore(m, tupleMat1, 0, FTOM(
static_cast<float>(proj_mat[1][0])));
1690 MMstore(m, tupleMat1, 1, FTOM(
static_cast<float>(proj_mat[1][1])));
1691 MMstore(m, tupleMat1, 2, FTOM(
static_cast<float>(proj_mat[1][2])));
1692 MMstore(m, tupleMat1, 3, FTOM(
static_cast<float>(proj_mat[1][3])));
1693 MMpush(m, PTOM(tupleMat1));
1695 int tupleMat2 = MMmalloc(m, 4, TYPETAB);
1702 MMstore(m, tupleMat2, 0, FTOM(
static_cast<float>(proj_mat[2][0])));
1703 MMstore(m, tupleMat2, 1, FTOM(
static_cast<float>(proj_mat[2][1])));
1704 MMstore(m, tupleMat2, 2, FTOM(
static_cast<float>(proj_mat[2][2])));
1705 MMstore(m, tupleMat2, 3, FTOM(
static_cast<float>(proj_mat[2][3])));
1706 MMpush(m, PTOM(tupleMat2));
1708 int tupleMat3 = MMmalloc(m, 4, TYPETAB);
1715 MMstore(m, tupleMat3, 0, FTOM(
static_cast<float>(proj_mat[3][0])));
1716 MMstore(m, tupleMat3, 1, FTOM(
static_cast<float>(proj_mat[3][1])));
1717 MMstore(m, tupleMat3, 2, FTOM(
static_cast<float>(proj_mat[3][2])));
1718 MMstore(m, tupleMat3, 3, FTOM(
static_cast<float>(proj_mat[3][3])));
1719 MMpush(m, PTOM(tupleMat3));
1721 MMstore(m, tupleMat, 0, MMget(m, 3));
1722 MMstore(m, tupleMat, 1, MMget(m, 2));
1723 MMstore(m, tupleMat, 2, MMget(m, 1));
1724 MMstore(m, tupleMat, 3, MMget(m, 0));
1730 MMpush(m, PTOM(tupleMat));
1740 {
"SO3CameraCreate", 2,
"fun [SO3_SCENE S] SO3_OBJECT",
SO3CameraCreate },
1741 {
"SO3CameraLookAt", 2,
"fun [SO3_OBJECT [F F F]] I",
SO3CameraLookAt },
int SCOLfreeCamera()
free the SO3Engine Viewport function
NativeDefinition natSO3Camera[]
int SO3CameraGetProjectionMatrix(mmachine m)
SO3CameraGetProjectionMatrix : This function return the projection matrix Prototype: fun [SO3_OBJECT]...
int SCOLloadCamera(mmachine m, cbmachine w)
Load the SO3Engine Viewport function.
MMechostr(MSKDEBUG, " > Start loading Plugin SO3Engine dll\n")
SCOL_EXPORT int cbmachine w
int createObject(mmachine m, SNode *curNode, SScene *curScene)
int SO3CameraGetNumRenderedFaces(mmachine m)
SO3CameraGetNumRenderedFaces : Get the numbered of rendered faces for a camera.
int SO3CameraGetOrthoWindow(mmachine m)
SO3CameraGetOrthoWindow : Gets the orthographic window settings, for use with orthographic rendering ...
int SO3CameraGetLODbias(mmachine m)
SO3CameraGetLODbias : Get the a camera LOD bias.
int SO3CameraSetProjectionMatrix(mmachine m)
SO3CameraSetProjectionMatrix : Set the camera projection matrix.
int SO3CameraGetAspectRatio(mmachine m)
SO3CameraGetAspectRatio : get the aspect ratio of a camera.
int SO3CameraGetFarClipDistance(mmachine m)
SO3CameraGetFarClipDistance : Get the far clip distance of a camera.
int SO3CameraGetDerivedDirection(mmachine m)
SO3CameraGetDerivedDirection : Get the derivated direction of a camera.
int SO3CameraSetProjectionType(mmachine m)
SO3CameraSetProjectionType : Sets the type of projection to use (orthographic or perspective)....
int SO3CameraSetFocalLength(mmachine m)
SO3CameraSetFocalLength : defines focal length of a camera.
int SO3CameraCreate(mmachine m)
main include
int SO3CameraSetPolygonMode(mmachine m)
SO3CameraSetPolygonMode : Set the polygon Mode for a given camera.
int SO3CameraGetDirection(mmachine m)
SO3CameraGetDirection : Get the direction of a camera.
int SO3CameraSetAutoAspectRatio(mmachine m)
SO3CameraSetAutoAspectRatio : set a camera aspect ratio to automatic.
int SO3CameraGetPolygonMode(mmachine m)
SO3CameraGetPolygonMode : Get the Polygon mode of a camera.
int SO3CameraGetProjectionType(mmachine m)
SO3CameraGetProjectionType : Get the camera projection type.
int SO3CameraSetAspectRatio(mmachine m)
SO3CameraSetAspectRatio : defines the aspect ratio of a camera.
int SO3CameraSetFOVy(mmachine m)
SO3CameraSetFOVy : defines FOVy of a camera.
int SO3CameraGetNearClipDistance(mmachine m)
SO3CameraGetNearClipDistance : Get the near clip distance of a camera.
int SO3CameraGetFrustumOffset(mmachine m)
SO3CameraGetFrustumOffset : get the frustum offset of a camera.
int SO3CameraSetNearClipDistance(mmachine m)
SO3CameraSetNearClipDistance : defines near clip distance of a camera.
int SO3CameraSetLODbias(mmachine m)
SO3CameraSetLODbias : defines a camera LOD bias.
int SO3CameraGetDerivedUp(mmachine m)
SO3CameraGetDerivedUp : Gets the derived up vector of the camera, including any rotation inherited fr...
int SO3CameraGetFOVy(mmachine m)
SO3CameraGetFOVy : Get the FOVy of a camera.
int SO3CameraSetOrthoWindow(mmachine m)
SO3CameraSetOrthoWindow : Sets the orthographic window settings, for use with orthographic rendering ...
int SO3CameraGetTriangleCount(mmachine m)
SO3CameraGetTriangleCount : get the number of triangles rendered in last update.
int SO3CameraSetFarClipDistance(mmachine m)
SO3CameraSetFarClipDistance : defines far clip distance of a camera.
int SO3CameraGetFocalLength(mmachine m)
SO3CameraGetFocalLength : Get the focal length of a camera.
int SO3CameraSetViewport(mmachine m)
SO3CameraSetViewport : Attach a camera to a viewport.
int SO3CameraGetViewport(mmachine m)
SO3CameraGetViewport : Get the current viewport attached to a camera.
int SO3CameraGetBatchCount(mmachine m)
SO3CameraGetBatchCount : get the number of batch rendered in last update.
int SO3CameraSetFrustumOffset(mmachine m)
SO3CameraSetFrustumOffset : defines the frustum offset of a camera.
int SO3CameraLookAt(mmachine m)
SO3CameraLookAt : Set a "look at" on the camera.