在GDK对话框上设置“显示”按钮,点击显示sdl窗口;当sdl窗口在对话框后面时,如何调用函数使sdl窗口显示在最前端。
by songzhimin0416 - GUI编程 - 2009-04-10 13:48:14 阅读(2914) 回复(1)
各位高手: 我现在正用sdl设计一个界面,界面包括背景位图和前景文字两部分,为了方便清除文字,我把背景和文字分别放在两个SURFACE里,同时,为了文字的SURFACE不把背景的SURFACE覆盖,我把前景设置成为透明,请问,我可以用什么办法清除文字
有人用sdl写程序吗? 我刚刚开始学习使用它 写了个简单的hello.c 编译的时候正常通过 但是如果加上-static参数就不行 出现一堆错误 请问这是怎么回事? ---------------------------------------------------------------- lwSUSE:~/code/sdl # cc sdl_test.c -static `sdl-config --cflags --libs` /usr/lib/libsdl.a(sdl_alsa_audio.o): In function `UnloadALSALibrary': sdl_alsa_audio.o(.text+0x2a): undefined reference to ...
请教sdl相关编程, 编写相关程序,在编译成功后,运行程序的时候提示错误: sdl_Init No available video device 官网的解释是: 网址为: http://www.libsdl.org/faq.php?action=listentries&category=3#25 摘录关键如下: Q: I get the error: "no video devices available" A: sdl doesn't use the X11 video driver if it can't open the X display, and if no other drivers are available, it will report this error. To...
在linux的文本模式下,使用sdl库。内核加入了framebuffer,默认启动console的分辨率是640x480x4,我现在只要用DSL_Init(DSL_INIT_VIDEO)初始化,然后编译运行后 ,console的分辨率自动改成了320x200x8~想问一下这是怎么回事?而且使用sdl_VideoModeOK(640,400,4,sdl_HWSURFACE)测试了一下,显示无法支持此分辨率~~有没有哪位朋友可以给点建议???先谢谢了!~
下载了sdl-1.2.12.tar.gz,解压后用 ./configure gmake gmake install 编译的 然后再编译qemu 0.9 使用 ./configure --prefix=/opt/qemu --target-list=x86_64-softmmu,i386-softmmu --disable-gcc-check --install=/usr/ucb/install 进行编译,结果提示 ./configure: sdl-config: 没找到 Examine /tmp/qemu-sdl-config.log for exact reason why test for libsdl did not compile 查看emu-sdl-config.log后发现: /tmp/qemu-conf...
我下了一个barrage,看着挺好玩, 可是编译的时候提示 [code] configure: error: lib sdl is needed[/code] sdl我系统里 有的, [code] /home/lee/mysoft/barrage-1.0.2#rpm -qi sdl Name : sdl Relocations: /usr Version : 1.2.5 Vendor: Red Hat, Inc. [/code] 有知道的大侠指教一下~ ,谢谢! http://download.chinaunix.net/download/0001000/735.shtml