Blamite Game Engine - Blam (Core)
utilities.h File Reference
#include <Windows.h>
#include <string>

Go to the source code of this file.

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Utils
 Namespace containing general-purpose utilities.
 

Macros

#define BLAM
 

Functions

BLAM void Blam::Utils::OpenWebURL (std::string url)
 Opens the specified URL in the user's default web browser. More...
 
BLAM void Blam::Utils::OpenLocalWebURL (std::string local_path)
 Opens the specified relative path in the user's default web browser. More...
 
BLAM std::pair< float, float > Blam::Utils::GetSystemDpi ()
 Retrieve the Windows system DPI. More...
 
BLAM std::pair< float, float > Blam::Utils::GetEngineDpi ()
 Retrieve the game engine's DPI. More...
 
template<class Type >
void SafeRelease (Type **pointer)
 Releases a pointer. More...
 
template<typename Type >
Type * SafeAcquire (Type *newObject)
 Acquires an additional reference, if non-null. More...
 
template<typename Type >
void SafeSet (Type **currentObject, Type *newObject)
 Sets a new COM object, releasing the old one. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM

Function Documentation

◆ SafeAcquire()

template<typename Type >
Type* SafeAcquire ( Type *  newObject)

Acquires an additional reference, if non-null.

Template Parameters
Type- The type of the object.
Parameters
newObject- The pointer to set to the new object reference.

◆ SafeRelease()

template<class Type >
void SafeRelease ( Type **  pointer)

Releases a pointer.

Template Parameters
Type- The type of the object.
Parameters
pointer- The pointer to the pointer of the object to release.

◆ SafeSet()

template<typename Type >
void SafeSet ( Type **  currentObject,
Type *  newObject 
)

Sets a new COM object, releasing the old one.

Template Parameters
Type- The type of the object.
Parameters
currentObject- The pointer to the pointer of the current object.
newObject- The pointer to set to the new object.