Back to the list GrimWrapper version: 1.0
Deeem2031
-
Platform:
Windows Type: UserLIB/DLL Genre: - Language: -
read: 10342
10 / 1
BBCode Link
[url=http://www.purearea.net/pb/showcase/show.php?id=249&d=1]
[b]GrimWrapper v.1.0[/b][/url]


This is a wrapper for the (DX8) Grim2D-Engine ( http://grim.10tons.org/ ), so you can call the procedures directly in PB.

Example:
---
Procedure FrameProc()
If Grim_Key_Down(#DIK_ESCAPE)
ProcedureReturn #False
EndIf
ProcedureReturn #True
EndProcedure

If OpenLibrary(0,"c:purebasiccompilersgrim.dll")
Grim_GetInterface(0,"c:purebasiccompilersgrim.dll")

Grim_System_SetState(#grSTATE_FRAMEFUNC,@FrameProc())
Grim_System_SetState(#grSTATE_WINDOWED,#True)
Grim_System_SetState(#grSTATE_KEYBOARD,#True)

Grim_System_Initiate()
Grim_System_Start()

Grim_System_Shutdown()
Grim_Inferface_Release()

CloseLibrary(0)
EndIf
---

Notice: If Grim_System_GetState() return a String/Float you get to pointer to it:
Debug PeekF(Grim_System_GetState(#grSTATE_FONTSCALE))
Debug PeekS(Grim_System_GetState(#grSTATE_TITLE))
[3 KB]    (918 Downloads)

to vote LogIn or Register an account.