Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
dcpp::shared_device Class Reference
Collaboration diagram for dcpp::shared_device:
Collaboration graph

Public Types

enum class  cmp_status : dcpp::int8_kt {
  same_ref = 0 , null_device_1 , null_device_2 , null_counter_1 ,
  null_counter_2 , no_device_1 , no_device_2 , device_ne ,
  counter_ne
}
 

Public Member Functions

void destroy ()
 
dcpp::int32_kt use_count () const
 
 shared_device (dcpp::video::E_DRIVER_TYPE edt__, const dcpp::nub::dimension2du &window_size__, dcpp::uint32_kt color_bits__, bool fullscreen__, bool stencilbuffer__, bool vsync__, dcpp::IEventReceiver *receiver__)
 
 shared_device (dcpp::uint32_kt width__, dcpp::uint32_kt height__, const std::wstring &title__, bool fullscreen__=false, dcpp::video::E_DRIVER_TYPE edt__=dcpp::video::EDT_EGXU)
 
 shared_device (dcpp::uint32_kt width__, dcpp::uint32_kt height__, const std::string &title__="Duckcpp Window, c++ engine", bool fullscreen__=false, dcpp::video::E_DRIVER_TYPE edt__=dcpp::video::EDT_EGXU)
 
 shared_device (dcpp::video::E_DRIVER_TYPE edt__)
 
 shared_device (const self_type &other__)
 
 shared_device (const self_type &&other__)
 
bool has_device () const
 
self_typeoperator= (const self_type &other__)
 
self_typeoperator= (const self_type &&other__)
 
bool operator== (const self_type &other__) const
 
self_type::cmp_status compare (const self_type &other__) const
 
bool operator< (const self_type &other__) const =delete
 
bool operator<= (const self_type &other__) const =delete
 
bool operator> (const self_type &other__) const =delete
 
bool operator>= (const self_type &other__) const =delete
 
bool operator<=> (const self_type &other__) const =delete
 
dcpp::DuckcppDeviceget () const
 
dcpp::video::IVideoDrivervideo () const
 
dcpp::scene::ISceneManagerscene () const
 
dcpp::io::IFileSystemfs () const
 
dcpp::gui::IGUIEnvironmentgui () const
 
dcpp::gui::ICursorControlcursor () const
 
void fit_cursor ()
 
dcpp::ITimertimer () const
 
dcpp::ILoggerlogger () const
 
const dcpp::char_ktversion () const
 
dcpp::IOSOperatorosop () const
 
dcpp::IRandomizerrandomizer () const
 
void randomizer (dcpp::IRandomizer *rd__)
 
dcpp::IRandomizercreate_default_randomizer () const
 
dcpp::video::IContextManagercontext () const
 if it does not have it.
 
bool run ()
 
void yield ()
 
void close ()
 
void sleep (dcpp::float32_kt time__, bool pause_timer__=false)
 
void caption (const std::wstring &title__)
 
void caption (const std::string &title__)
 
dcpp::video::ECOLOR_FORMAT color_format () const
 
dcpp::video::IVideoModeListmode_list ()
 
void receiver (dcpp::IEventReceiver *receiver__)
 
dcpp::IEventReceiverreceiver () const
 
bool post_user_event (dcpp::SEvent &event__)
 
void receiving_scene (dcpp::scene::ISceneManager *scene__)
 
void resize (dcpp::uint32_kt width__, dcpp::uint32_kt height__)
 
void resizable (bool value__)
 
bool fullscreen () const
 
bool window_active () const
 
bool window_focused () const
 
bool window_minimized () const
 
void minimize_window ()
 
void maximize_window ()
 
void restore_window ()
 
dcpp::nub::position2di window_position () const
 
bool activate_joysticks (dcpp::nub::array< dcpp::SJoystickInfo > &joysticks_info__)
 
self_type::returned_gamma_ramp_type gamma_ramp ()
 
bool gamma_ramp (dcpp::float32_kt red__, dcpp::float32_kt green__, dcpp::float32_kt blue__, dcpp::float32_kt brightness__, dcpp::float32_kt contrast__)
 
void double_click_time (dcpp::uint32_kt time_ms__)
 
dcpp::uint32_kt double_click_time () const
 
void clear_system_messages ()
 
dcpp::E_DEVICE_TYPE type () const
 
self_type::returned_tuple_type tuple () const
 

Static Public Member Functions

static std::string cmp_string (self_type::cmp_status status__)
 
static bool driver_supported (dcpp::video::E_DRIVER_TYPE edt__)
 

Static Public Attributes

static dcpp::int32_kt device_creation_counter
 
static dcpp::int32_kt device_destroy_counter
 

Protected Attributes

std::shared_ptr< dcpp::int32_kt__counter {nullptr}
 
dcpp::DuckcppDevice__device {nullptr}
 

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

Duckcpp    @cppfx.xyz