Project

General

Profile

SO3Engine
SCOLLog.cpp File Reference

Go to the source code of this file.

Functions

int destroyLogs (mmachine m, SCOL_PTR_TYPE handle, int obj)
 function to destroy an SO3_LOGS in scol
 
int getLogCallback (mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
 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
 
NativeDefinition natSO3Log []
 

Function Documentation

◆ destroyLogs()

int destroyLogs ( mmachine  m,
SCOL_PTR_TYPE  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 87 of file SCOLLog.cpp.

◆ getLogCallback()

int getLogCallback ( mmachine  m,
SCOL_PTR_TYPE  id,
SCOL_PTR_TYPE  param 
)

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 110 of file SCOLLog.cpp.

◆ SCOLfreeLogs()

int SCOLfreeLogs ( )

free the SO3Engine Logs function

Parameters
m: The VM

Definition at line 249 of file SCOLLog.cpp.

◆ SCOLloadLogs()

int SCOLloadLogs ( mmachine  m,
cbmachine  w 
)

Load the SO3Engine Logs function.

Parameters
m: The VM
w: The Callback VM

Definition at line 232 of file SCOLLog.cpp.

Variable Documentation

◆ natSO3Log

NativeDefinition natSO3Log[]
Initial value:
= {
{ "SO3Logs", TYPTYPE, NULL, NULL },
{ "SO3CbLogs", 4, "fun [Chn fun [S u0] u1 u0 I] I", SO3CbLogs }
}
int SO3CbLogs(mmachine m)
SO3CbLogs : Define the callback scol had to be called when there is a log event.
Definition SCOLLog.cpp:162

Definition at line 221 of file SCOLLog.cpp.

◆ scolLogEventsListener

ScolLogEventsListener* scolLogEventsListener = 0

Global instance.

Definition at line 76 of file SCOLLog.cpp.

◆ SO3_LOGS_MSG

int SO3_LOGS_MSG

Definition at line 44 of file SCOLLog.cpp.

◆ SO3LOGS

int SO3LOGS

main include

Definition at line 43 of file SCOLLog.cpp.