I'll use this post to list changes to the oapi::GraphicsClient class since the 2010-P1 (100830) release. Hopefully this list will make it easier for graphics client developers to keep up to date with current developments.
Beta 110824
Client source changes required: no, but recommended if the new mechanism can improve the client efficiency.
Next Beta
Graphics client:
Addon space:
Beta 110824
- Added clbkBeginBltGroup and clbkEndBltGroup methods for grouping blitting calls to the same target
- Corresponding oapiBeginBltGroup and oapiEndBltGroup functions added to user space interface, so that the mechanism can be supported by addons.
- Currently only the new main menu implementation makes use of the new client functions
Client source changes required: no, but recommended if the new mechanism can improve the client efficiency.
Next Beta
Graphics client:
- Added method clbkCreateSurfaceEx (DWORD w, DWORD h, DWORD attrib)
- Once I am finished with the core update, the old methods clbkCreateSurface (DWORD w, DWORD h) and clbkCreateTexture (DWORD w, DWORD h) will no longer be called.
Addon space:
- Added function oapiCreateSurfaceEx (int w, int h, DWORD attrib)
- Marked oapiCreateSurface (int w, int h) as obsolete. For backward compatibility, this will call oapiCreateSurfaceEx with attrib=OAPISURFACE_RENDERTARGET | OAPISURFACE_GDI | OAPISURFACE_SKETCHPAD
- Marked oapiCreateTexture (int w, int h) as obsolete. For backward compatibility, this will call oapiCreateSurfaceEx with attrib=OAPISURFACE_TEXTURE | OAPISURFACE_RENDERTARGET | OAPISURFACE_GDI | OAPISURFACE_SKETCHPAD
- Added VESSEL4 interface. For now, this contains the single method
Code:RegisterPanelArea (PANELHANDLE hPanel, int id, const RECT &pos, int texidx, const RECT &texpos, int draw_event, int mouse_event, int bkmode)