The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
Functions
SpriteRenderer.cpp File Reference

Code for the sprite renderer LSpriteRenderer. More...

#include "SpriteRenderer.h"
#include "Abort.h"

Functions

bool IsBehind (const LSpriteDesc3D *p0, const LSpriteDesc3D *p1)
 Comparison for depth sorting sprites. More...
 

Function Documentation

◆ IsBehind()

bool IsBehind ( const LSpriteDesc3D p0,
const LSpriteDesc3D p1 
)

Compare the sprites' Z coordinates.

Parameters
p0Pointer to sprite descriptor 0.
p1Pointer to sprite descriptor 1.
Returns
true If sprite 0 is behind sprite 1.