OpenBlox
A game engine which provides a simple and easy to learn Lua API.
OB::OBRenderUtils Class Reference

#include <OBRenderUtils.h>

Public Member Functions

 OBRenderUtils (OBEngine *eng)
 
virtual ~OBRenderUtils ()
 
OBEnginegetEngine ()
 
void prepare2DMode ()
 
void end2DMode ()
 
bool saveScreenshot (std::string file)
 
irr::IrrlichtDevice * getIrrlichtDevice ()
 

Detailed Description

Rendering related utilities and complete hacks

Author
John M. Harris, Jr.
Date
November 2018

Constructor & Destructor Documentation

◆ OBRenderUtils()

OB::OBRenderUtils::OBRenderUtils ( OBEngine eng)

◆ ~OBRenderUtils()

virtual OB::OBRenderUtils::~OBRenderUtils ( )
virtual

Member Function Documentation

◆ end2DMode()

void OB::OBRenderUtils::end2DMode ( )

Ends a 2D context

Author
John M. Harris, Jr.

◆ getEngine()

OBEngine* OB::OBRenderUtils::getEngine ( )

Returns the OBEngine instance

Returns
Instance of OBEngine
Author
John M. Harris, Jr.

◆ getIrrlichtDevice()

irr::IrrlichtDevice* OB::OBRenderUtils::getIrrlichtDevice ( )

Returns the currently active Irrlicht device, if any.

Returns
Irrlicht device
Author
John M. Harris, Jr.

◆ prepare2DMode()

void OB::OBRenderUtils::prepare2DMode ( )

Prepares the rendering pipeline for 2D rendering.

Author
John M. Harris, Jr.

◆ saveScreenshot()

bool OB::OBRenderUtils::saveScreenshot ( std::string  file)

Save an image of the last frame to a file.

Parameters
fileFile to write to
Author
John M. Harris, Jr.

The documentation for this class was generated from the following file: