HGE引擎显示图像问题
这是照着网上一个文档做的,第一个例子可以运行,
但是显示图像这个例子就出问题了
[code=C/C++]]#include <Windows.h>
#include "hge.h"
#include "hgesprite.h"
HGE* hge = NULL;
hgeSprite *spr = NULL;
HTEXTURE tex;
bool RenderFunc()
{
hge->Gfx_BeginScene();
hge->Gfx_Clear(0xFF000000);
spr->Render(0.0,0.0);
hge->Gfx_EndScene();
return false;
}
bool FrameFunc()
{
return false;
}
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow
)
{
hge = hgeCreate(HGE_VERSION);
hge->System_SetState(HGE_SCREENWIDTH,800);
hge->System_SetState(HGE_SCREENWIDTH,600);
hge->System_SetState(HGE_FRAMEFUNC,FrameFunc);
hge->System_SetState(HGE_RENDERFUNC,RenderFunc);
hge->System_SetState(HGE_TITLE,"Show Picture!");
hge->System_SetState(HGE_WINDOWED,true);
hge->System_SetState(HGE_USESOUND,false);
hge->System_SetState(HGE_SHOWSPLASH,false);
if (hge->System_Initiate())
{
tex = hge->Texture_Load("Lena.jpg");
if (tex)
{
spr = new hgeSprite(tex,0,0,512,512);
}
hge->System_Start();
}
hge->Texture_Free(tex);
delete spr;
hge->System_Shutdown();
hge->Release();
return 0;
}
[/code问题:
CXX0030: Error: expression cannot be evaluated
看不懂