IContext

Graphics context creation interface for hardware graphics acceleration.

With this technology, the context can be easily created with the given attributes, and it is obligatory $(U after) the window is created.

Members

Functions

create
void create(IWindow window)

Creates directly, a graphics context object for a specific platform, based on the previously specified graphics context attributes.

destroy
void destroy()

Destroys the context.

setAttributes
void setAttributes(GraphicsAttributes attributes)

Sets the input attributes for creating the graphics context. At the same time, he must simultaneously give these attributes unsparingly to the very object of the pixel description, if such is possible. As a rule, this method is followed by the creation of the context, but the function itself should not do this.

Examples

// Window creation code . . .
Context contex = new Context();
context.setAttribute(attributes...);
context.create(window);
// The graphics context has been created!

Meta