Allegro draw_sprite()
|
我的调试文件夹中有一个名为\“ x.bmp \”的114x114位图,这个简单的代码
#include <allegro.h>
BITMAP *Sprite;
int main(){
allegro_init();
install_keyboard();
set_color_depth(16);
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
Sprite = load_bitmap( \"x.bmp\", NULL);
acquire_screen();
draw_sprite(screen, Sprite, 50, 50);
release_screen();
readkey();
return 0;
}
END_OF_MAIN();
但是它冻结了,看起来像这样
但是当我只是通过Windows资源管理器运行AllegroTest.exe
文件时,它就可以工作了...
我正在使用Allegro 4.2.3和MSVC ++ 2008
编辑:这是我在调试输出窗口中得到的一些有趣的东西:
al-gfx INFO: The driver will wait for vsync.
al-gfx INFO: set_gfx_card success for 640x480x16.
Assert failed at line 250 of c:\\users\\matthew\\desktop\\allegro\\4.2\\include\\allegro\\inline\\draw.inlThe thread \'Win32 Thread\' (0x137c) has exited with code -805306369 (0xcfffffff).
The thread \'Win32 Thread\' (0x25b8) has exited with code -805306369 (0xcfffffff).
c:\\ users \\ matthew不存在!!!我没有名为matthew的用户吗?
没有找到相关结果
已邀请:
1 个回复
究补闯