Incremental Engine  1.0.6
A 2D Game Engine to create Idle Games
IncrementalEngine::FontFactory Class Reference

#include <FontFactory.h>

Static Public Member Functions

static IFW1Factory * Get ()
 
static void Release ()
 

Static Private Attributes

static IFW1Factory * FACTORY_INSTANCE = nullptr
 

Detailed Description

Definition at line 8 of file FontFactory.h.

Member Function Documentation

◆ Get()

IFW1Factory * IncrementalEngine::FontFactory::Get ( )
static

Definition at line 8 of file FontFactory.cpp.

9  {
10  if (FACTORY_INSTANCE == nullptr)
11  {
12  HRESULT result = FW1CreateFactory(FW1_VERSION, &FACTORY_INSTANCE);
13  if (FAILED(result))
14  {
15  MessageBox(NULL, L"FW1CreateFactory", L"Error", MB_OK);
16  return NULL;
17  }
18  }
19 
20  return FACTORY_INSTANCE;
21  }

◆ Release()

void IncrementalEngine::FontFactory::Release ( )
static

Definition at line 23 of file FontFactory.cpp.

24  {
25  CHECKED_RELEASE(FACTORY_INSTANCE);
26  }

Member Data Documentation

◆ FACTORY_INSTANCE

IFW1Factory * IncrementalEngine::FontFactory::FACTORY_INSTANCE = nullptr
staticprivate

Definition at line 15 of file FontFactory.h.

IncrementalEngine::FontFactory::FACTORY_INSTANCE
static IFW1Factory * FACTORY_INSTANCE
Definition: FontFactory.h:15