15 #include "pandabase.h"
19 #include "tinySDLGraphicsPipe.h"
20 #include "tinySDLGraphicsWindow.h"
21 #include "tinyGraphicsStateGuardian.h"
22 #include "config_tinydisplay.h"
23 #include "frameBufferProperties.h"
33 TinySDLGraphicsPipe() {
36 if (SDL_Init(SDL_INIT_VIDEO) < 0) {
37 tinydisplay_cat.error()
38 <<
"Cannot initialize SDL video.\n";
49 ~TinySDLGraphicsPipe() {
50 if (SDL_WasInit(SDL_INIT_VIDEO)) {
51 SDL_QuitSubSystem(SDL_INIT_VIDEO);
67 string TinySDLGraphicsPipe::
68 get_interface_name()
const {
81 return new TinySDLGraphicsPipe;
90 make_output(const
string &name,
105 DCAST_INTO_R(tinygsg, gsg, NULL);
111 if (((flags&BF_require_parasite)!=0)||
112 ((flags&BF_refuse_window)!=0)||
113 ((flags&BF_resizeable)!=0)||
114 ((flags&BF_size_track_host)!=0)||
115 ((flags&BF_rtt_cumulative)!=0)||
116 ((flags&BF_can_bind_color)!=0)||
117 ((flags&BF_can_bind_every)!=0)) {
120 return new TinySDLGraphicsWindow(engine,
this, name, fb_prop, win_prop,
A container for the various kinds of properties we might ask to have on a graphics window before we o...
An object to create GraphicsOutputs that share a particular 3-D API.
This is a base class for the various different classes that represent the result of a frame of render...
Encapsulates all the communication with a particular instance of a given rendering backend...
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
An interface to the TinyPanda software rendering code within this module.