SO3Engine/SCOLPack/SCOLLog.cpp File Reference

#include "SO3SCOL.h"
#include "../SO3Renderer/SO3Root.h"
#include "../SO3Renderer/SO3LogListener.h"
#include "../SCOLBasic/SO3Prerequisites.h"

Go to the source code of this file.

Defines

#define NBLOGSPKG   2

Functions

int destroyLogs (mmachine m, int handle, int obj)
 function to destroy an SO3_LOGS in scol
int getLogCallback (mmachine m, WindowHandle h, unsigned msg, UINT id, LONG param, int *ret)
 C function that prepares the VM for the execution of the Scene Log event callback.
int SO3CbLogs (mmachine m)
 SO3CbLogs : Define the callback scol had to be called when there is a log event.
int SCOLloadLogs (mmachine m, cbmachine w)
 Load the SO3Engine Logs function.
int SCOLfreeLogs ()
 free the SO3Engine Logs function

Variables

int SO3LOGS
 main include
int SO3_LOGS_MSG
ScolLogEventsListener * scolLogEventsListener = 0
char * LOGSname [NBLOGSPKG]
int(* LOGSFunc [NBLOGSPKG])(mmachine m)
int LOGSnarg [NBLOGSPKG]
char * LOGSType [NBLOGSPKG]

Define Documentation

#define NBLOGSPKG   2

Nb of Scol functions or types

Definition at line 240 of file SCOLLog.cpp.


Function Documentation

int destroyLogs ( mmachine  m,
int  handle,
int  obj 
)

function to destroy an SO3_LOGS in scol

Parameters:
m : current machine
handle : given handle
obj : given SO3_LOGS
Returns:
0 if success

Definition at line 98 of file SCOLLog.cpp.

int getLogCallback ( mmachine  m,
WindowHandle  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

C function that prepares the VM for the execution of the Scene Log event callback.

Parameters:
m : current machine
h : main scol window
msg : message
id : pointer of the obj
param : data pointer
ret : user parameter
Returns:
res : 0 if success

Definition at line 122 of file SCOLLog.cpp.

int SCOLfreeLogs (  ) 

free the SO3Engine Logs function

Parameters:
m : The VM

Definition at line 308 of file SCOLLog.cpp.

int SCOLloadLogs ( mmachine  m,
cbmachine  w 
)

Load the SO3Engine Logs function.

Parameters:
m : The VM
w : The Callback VM

Definition at line 291 of file SCOLLog.cpp.


Variable Documentation

int(* LOGSFunc[NBLOGSPKG])(mmachine m)
Initial value:
{
  NULL,
  SO3CbLogs

}

Nb of arguments of each scol function

Definition at line 256 of file SCOLLog.cpp.

char* LOGSname[NBLOGSPKG]
Initial value:
{
  "SO3Logs",
  "SO3CbLogs"
}

Pointers to C functions that manipulate the VM for each scol function previously defined

Definition at line 246 of file SCOLLog.cpp.

int LOGSnarg[NBLOGSPKG]
Initial value:
{
  TYPTYPE,
  4                                          
 
}

Nb of arguments of each scol function

Definition at line 267 of file SCOLLog.cpp.

char* LOGSType[NBLOGSPKG]
Initial value:
{
  NULL,
  "fun [Chn fun [S u0] u1 u0 I] I"           
 
}

Prototypes of the scol functions

Definition at line 278 of file SCOLLog.cpp.

ScolLogEventsListener* scolLogEventsListener = 0

Global instance.

Definition at line 87 of file SCOLLog.cpp.

Definition at line 47 of file SCOLLog.cpp.

int SO3LOGS

main include

Definition at line 46 of file SCOLLog.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:32 2011 for SO3Engine by  doxygen 1.6.3