bool CALLBACK Present(CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride,
CONST RGNDATA *pDirtyRegion)
{
if (SUCCEEDED(SF->getRender()->BeginRender()))
{
stFontInfo *pFont;
SF->getRender()->registerD3DCallback(eDirect3DDeviceMethods::D3DMETHOD_PRESENT, Present);
pFont = SF->getRender()->CreateNewFont("Tahoma", 12, FCR_BORDER);
pFont->Print("10%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("20%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("30%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("40%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("50%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("60%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("70%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("80%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("90%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print("100%", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
pFont->Print(" Loaded!", D3DCOLOR_ARGB(255, 255, 255, 0), 500, 500, false);
SF->getRender()->EndRender();
};
return true;
};
void CALLBACK mainloop()
{
и.т.д
}