c++hge引擎 加载图片加载出来是白板
c++hge引擎 加载图片加载出来是白板是什么问题代码是:#include "stdafx.h"
#include "YuChiYu.h"
#include <iostream>
#include <hge.h>
#include <hgeSprite.h>
using namespace std;
hgeSprite *spr=NULL;
HGE *g_hge = NULL;
bool frame()
{
return false;
}
bool render()
{
g_hge->Gfx_BeginScene();
g_hge->Gfx_Clear(0);
spr->Render(0,0);
g_hge->Gfx_EndScene();
return false;
}
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
{
g_hge=hgeCreate(HGE_VERSION);//实例化
//相当与 Windows 32项目中的消息循环
g_hge->System_SetState(HGE_FRAMEFUNC,frame);//调用逻辑
g_hge->System_SetState(HGE_RENDERFUNC,render);//调用绘制
g_hge->System_SetState(HGE_WINDOWED,true);//创建窗口 true 为窗口 默认大小800x600
g_hge->System_SetState(HGE_SCREENWIDTH,800);
g_hge->System_SetState(HGE_SCREENHEIGHT,600);
g_hge->System_SetState(HGE_USESOUND,true);//添加音乐
g_hge->System_SetState(HGE_FPS,20);//针数 默认是999
g_hge->System_SetState(HGE_HIDEMOUSE,false);//显示鼠标
g_hge->System_SetState(HGE_TITLE,"LEI XIAO SONG");
if (g_hge->System_Initiate())//系统初始化
{
spr=new hgeSprite(g_hge->Texture_Load("123.jpg"),0,0,800,600);
g_hge->System_Start();
}
// 鼠标毛点
g_hge->System_Shutdown();
g_hge->Release();
delete spr;
return 0;
}
求大神指点