Project

General

Profile

SO3Engine
SO3SCOL.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OpenSpace3D
4For the latest info, see http://www.openspace3d.com
5
6Copyright (c) 2012 I-maginer
7
8This program is free software; you can redistribute it and/or modify it under
9the terms of the GNU Lesser General Public License as published by the Free Software
10Foundation; either version 2 of the License, or (at your option) any later
11version.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along with
18this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20http://www.gnu.org/copyleft/lesser.txt
21
22-----------------------------------------------------------------------------
23*/
24
25
33#ifndef __SO3SCOL_H__
34#define __SO3SCOL_H__
35
36#define INITGUID
38#include <scolMemoryHelper.hpp>
39
40#ifdef _WIN32
41 #include <time.h>
42#endif
43
44#include "SCOLBasic/Cpuid.h"
45
46// using scolSDK
47#include "SCOLBasic/Version.h"
48
49#ifdef _WIN32
50 #include <shlobj.h>
51#endif
52
54extern cbmachine ww;
55extern mmachine mm;
56
57// Using SO3Engine namespace
58using namespace SO3;
59
61extern SRoot* scolRoot;
62
63extern int SO3SCENETYPE;
64extern int SO3BUFFER;
65extern int SO3OBJTYPE;
66extern int SO3TERRAINTYPE;
67extern int SO3ANIM;
68extern int SO3ANIMTRACK;
69extern int SO3VPTYPE;
70extern int SO3PHYSICSMATERIALTYPE;
71extern int SO3PHYSICSMATERIALPAIR;
72extern int SO3MATERIAL;
73extern int SO3TEXTURE;
74extern int SO3PHYSICBODY;
75extern int SO3PHYSICCONTRAINT;
76extern int SO3WIDGET;
77
79#define RETPUL(x,y) { for (int i=0;i<x-1;i++) MMpull(m); MMset(m,0,y); return 0; }
80int SCOLEventPhysics (mmachine m, ScolWindowHandle hwnd,unsigned int msg,UINT wParam, LONG lParam,int *ret);
82int createObject(mmachine m, SNode* curNode, SScene* curScene);
83int createTerrain(mmachine m, STerrain* terrain, SScene* curScene);
84int createBone(mmachine m, SNode* curNode, SScene* curScene,SNode* curFather);
85int createBody(mmachine m, SNode* curNode);
87int createAnim(mmachine m, SAnim* curAnim,SNode* curNode);
88int createAnimTrack(mmachine m, SAnimTrack* curAnimTrack,SAnim* curAnim);
89int createMaterial(mmachine m, SMaterial* curMaterial, SScene* curScene);
90int createTexture(mmachine m, STexture* curTexture, SScene* curScene);
91int createMaterialID(mmachine m, SMaterialID * curMatID,SScene* curScene);
92int createMaterialPair(mmachine m, SMaterialPair* curMatPair,SScene* curScene);
93int createCollision(mmachine m);
94SScene* getSceneByName(string sceneName);
96int SO3DestroyObject(mmachine m, int handle,int obj);
97int SO3DestroyAnim(mmachine m, int handle,int obj);
98int SO3DestroyAnimTrack(mmachine m, int handle,int obj);
99int SO3DestroyScene(mmachine m, int handle,int obj);
100int SO3DestroyViewport(mmachine m, int handle,int obj);
101int SO3DestroyOverlay(mmachine m, int handle,int obj);
102int SO3DestroyPhysicsMaterial(mmachine m, int handle,int obj);
103int SO3DestroyPhysicsBody(mmachine m, int handle,int obj);
104int SO3DestroyMaterial(mmachine m, int handle,int obj);
105int SO3DestroyTexture(mmachine m, int handle,int obj);
106bool checkGroupExists(std::string group);
107bool checkGroupProtected(std::string groupeName);
108int bufferSetReflexes(mmachine m);
109int RetrieveMWin(mmachine m, ScolWindowHandle windowHwnd);
110int SetFocusMWin(mmachine m, ScolWindowHandle windowHwnd);
111
112
117{
118public :
119 int key;
120 int vcode;
123
124};
125
126
130class MWIN
131{
132public :
133 int w;
134 int h;
135 int x;
136 int y;
138 std::vector<string> dropedFiles;
139 MWIN(){}
140 ~MWIN(){}
141};
142
143void _SO3_Export SCOLloadExternalComponent(int (*scolLoadFunction)(mmachine, cbmachine));
144
145#endif
Code to retrieve user Processor Datas.
long LONG
Definition SO3Android.h:59
unsigned int UINT
Definition SO3Android.h:58
librairies include
int SO3DestroyTexture(mmachine m, int handle, int obj)
int createAnimTrack(mmachine m, SAnimTrack *curAnimTrack, SAnim *curAnim)
int createCollision(mmachine m)
int SO3PHYSICCONTRAINT
Definition SO3SCOL.cpp:100
int SO3PHYSICSMATERIALTYPE
Definition SO3SCOL.cpp:95
int SO3DestroyPhysicsMaterial(mmachine m, int handle, int obj)
int createTerrain(mmachine m, STerrain *terrain, SScene *curScene)
int SO3DestroyAnim(mmachine m, int handle, int obj)
int createTexture(mmachine m, STexture *curTexture, SScene *curScene)
int createAnim(mmachine m, SAnim *curAnim, SNode *curNode)
int SO3MATERIAL
Definition SO3SCOL.cpp:97
int createBody(mmachine m, SNode *curNode)
int RetrieveMWin(mmachine m, ScolWindowHandle windowHwnd)
int SO3SCENETYPE
Definition SO3SCOL.cpp:88
bool checkGroupExists(std::string group)
function to check if an Ogre resource group exists
Definition SO3SCOL.cpp:955
int SO3DestroyViewport(mmachine m, int handle, int obj)
int SO3PHYSICSMATERIALPAIR
Definition SO3SCOL.cpp:96
int createPhysicContraint(mmachine m, SPhysicContraint *joint)
SScene * getSceneByName(string sceneName)
function to retrieve a scene by its name
Definition SO3SCOL.cpp:238
int SO3TERRAINTYPE
Definition SO3SCOL.cpp:91
int SO3OBJTYPE
Definition SO3SCOL.cpp:90
int SO3DestroyAnimTrack(mmachine m, int handle, int obj)
int SO3DestroyPhysicsBody(mmachine m, int handle, int obj)
int SO3VPTYPE
Definition SO3SCOL.cpp:94
bool checkGroupProtected(std::string groupeName)
function to check if an Ogre resource group is protected
Definition SO3SCOL.cpp:974
void _SO3_Export SCOLloadExternalComponent(int(*scolLoadFunction)(mmachine, cbmachine))
Definition SO3SCOL.cpp:5263
int SO3ANIM
Definition SO3SCOL.cpp:92
int SCOLEventPhysics(mmachine m, ScolWindowHandle hwnd, unsigned int msg, UINT wParam, LONG lParam, int *ret)
int createOrRetrieveScolMaterialAndSendToVM(mmachine m, SScene *scene, SMaterial *mat)
cbmachine ww
Declaration of machine instance.
Definition SO3SCOL.cpp:108
int SO3DestroyObject(mmachine m, int handle, int obj)
int createObject(mmachine m, SNode *curNode, SScene *curScene)
int SO3DestroyMaterial(mmachine m, int handle, int obj)
int SO3WIDGET
Definition SO3SCOL.cpp:101
int SO3PHYSICBODY
Definition SO3SCOL.cpp:99
int bufferSetReflexes(mmachine m)
int createMaterial(mmachine m, SMaterial *curMaterial, SScene *curScene)
int SO3DestroyScene(mmachine m, int handle, int obj)
void deleteRessource()
int SO3TEXTURE
Definition SO3SCOL.cpp:98
int createMaterialID(mmachine m, SMaterialID *curMatID, SScene *curScene)
int SO3ANIMTRACK
Definition SO3SCOL.cpp:93
int SO3BUFFER
Definition SO3SCOL.cpp:89
int SetFocusMWin(mmachine m, ScolWindowHandle windowHwnd)
int createMaterialPair(mmachine m, SMaterialPair *curMatPair, SScene *curScene)
int SO3DestroyOverlay(mmachine m, int handle, int obj)
SRoot * scolRoot
Shared data.
Definition SO3SCOL.cpp:186
mmachine mm
Definition SO3SCOL.cpp:109
int createBone(mmachine m, SNode *curNode, SScene *curScene, SNode *curFather)
Versionning.
~MKEYBOARD()
Definition SO3SCOL.h:122
int key
Definition SO3SCOL.h:119
MKEYBOARD()
Definition SO3SCOL.h:121
int vcode
Definition SO3SCOL.h:120
int ptofile
Definition SO3SCOL.h:137
MWIN()
Definition SO3SCOL.h:139
int x
Definition SO3SCOL.h:135
~MWIN()
Definition SO3SCOL.h:140
int h
Definition SO3SCOL.h:134
int y
Definition SO3SCOL.h:136
std::vector< string > dropedFiles
Definition SO3SCOL.h:138
int w
Definition SO3SCOL.h:133