Confirmed users
138
edits
(→Bas) |
(→Bas) |
||
| Line 114: | Line 114: | ||
== Bas == | == Bas == | ||
// Interface implemented by 'renderers'. This interface can for example | |||
// be implemented by Cairo(possibly with cairo-gl), OpenGL, Direct3D or | |||
// any other framework we want. This should allow easy switching between | |||
// different renderers, and provide needed software fallback mechanisms. | |||
class IRenderer | |||
{ | |||
// Set the widget this renders to. | |||
void SetWidget(widget); | |||
} | |||
// The controlling class that controls the composition of frames. This | // The controlling class that controls the composition of frames. This | ||
| Line 134: | Line 143: | ||
// shown until unlocked. | // shown until unlocked. | ||
Layer *CreateLayer(size, format, type); | Layer *CreateLayer(size, format, type); | ||
// This sets the renderer that this compositor uses, without a renderer | |||
// the compositor essentially does nothing. | |||
void SetRenderer(renderer) | |||
}; | }; | ||