shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shScene.c File Reference
#include "shengine/shEngine.h"
#include "shengine/shInput.h"
#include "shengine/shLinearAlgebra.h"
#include "shenvironment/shEnvironment.h"
#include <string.h>
#include <cglm/cglm.h>

Functions

uint8_t shSceneInit (ShEngine *p_engine)
 Initializes the scene in the shengine framework.
 
uint8_t shUpdateTransform (ShTransform *p_transform)
 Updates the transform in the shengine framework.
 
uint8_t shUpdateCamera (ShEngine *p_engine, ShTransform *p_transform, ShCamera *p_camera)
 Updates the camera in the shengine framework.
 
uint8_t shSceneUpdate (ShEngine *p_engine)
 Updates the scene in the shengine framework.
 
uint8_t shEndScene (ShEngine *p_engine)
 Ends the scene in the shengine framework.
 

Function Documentation

◆ shEndScene()

uint8_t shEndScene ( ShEngine p_engine)

Ends the scene in the shengine framework.

Parameters
p_enginePointer to a valid ShEngine structure.
Returns
1 on success, 0 on failure.

◆ shSceneInit()

uint8_t shSceneInit ( ShEngine p_engine)

Initializes the scene in the shengine framework.

Parameters
p_enginePointer to a valid ShEngine structure.
Returns
1 on success, 0 on failure.

◆ shSceneUpdate()

uint8_t shSceneUpdate ( ShEngine p_engine)

Updates the scene in the shengine framework.

Parameters
p_enginePointer to a valid ShEngine structure.
Returns
1 on success, 0 on failure.

◆ shUpdateCamera()

uint8_t shUpdateCamera ( ShEngine p_engine,
ShTransform p_transform,
ShCamera p_camera 
)

Updates the camera in the shengine framework.

Parameters
p_enginePointer to a valid ShEngine structure.
p_transformPointer to a valid ShTransform structure.
p_cameraPointer to a valid ShCamera structure.
Returns
1 on success, 0 on failure.

◆ shUpdateTransform()

uint8_t shUpdateTransform ( ShTransform p_transform)

Updates the transform in the shengine framework.

Parameters
p_transformPointer to a valid ShTransform structure.
Returns
1 on success, 0 on failure.