Euphoria
eu::render::Init Struct Reference

#include <init.h>

Public Types

enum class  BlendHack { no_hack , enable_hack }
 

Public Member Functions

 Init (LoaderFunction loader, BlendHack blend_hack=BlendHack::no_hack)
 
 ~Init ()
 
 Init (const Init &)=delete
 
 Init (Init &&)=delete
 
void operator= (const Init &)=delete
 
void operator= (Init &&)=delete
 
mat4f get_ortho_projection (float width, float height) const
 
void clear_screen (const Rgb &color) const
 
void use_2d () const
 

Public Attributes

bool is_ok
 

Detailed Description

Definition at line 12 of file init.h.

Member Enumeration Documentation

◆ BlendHack

Enumerator
no_hack 
enable_hack 

Definition at line 14 of file init.h.

Constructor & Destructor Documentation

◆ Init() [1/3]

eu::render::Init::Init ( LoaderFunction  loader,
Init::BlendHack  blend_hack = BlendHack::no_hack 
)
explicit

Definition at line 13 of file init.cc.

◆ ~Init()

eu::render::Init::~Init ( )
default

◆ Init() [2/3]

eu::render::Init::Init ( const Init )
delete

◆ Init() [3/3]

eu::render::Init::Init ( Init &&  )
delete

Member Function Documentation

◆ clear_screen()

void eu::render::Init::clear_screen ( const Rgb color) const

Definition at line 77 of file init.cc.

◆ get_ortho_projection()

mat4f eu::render::Init::get_ortho_projection ( float  width,
float  height 
) const

Definition at line 61 of file init.cc.

◆ operator=() [1/2]

void eu::render::Init::operator= ( const Init )
delete

◆ operator=() [2/2]

void eu::render::Init::operator= ( Init &&  )
delete

◆ use_2d()

void eu::render::Init::use_2d ( ) const

Definition at line 69 of file init.cc.

Member Data Documentation

◆ is_ok

bool eu::render::Init::is_ok

Definition at line 20 of file init.h.


The documentation for this struct was generated from the following files: