OpenGL 2D示例游戏 [英] OpenGL 2d example game

查看:207
本文介绍了OpenGL 2D示例游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习使用OpenGL载入精灵并使精灵移动。我看起来似乎找不到一个2D的OpenGL游戏编程的教程。从我读过的有使用2D与OpenGL而不是严格的SDL有很多优点。因此,如果有人知道一个源代码,我可以像一个简单的游戏,像马里奥的基础知识一样移动sprite。

I want to learn to use OpenGL to load sprites and make the sprites move. I cant seem to find a single tutorial on 2D OpenGL game programming. From what I've read there are many advantages to using 2D with OpenGL rather than strictly SDL. So if anyone knows of a source code where I can move around a sprite like a simple game, like the basics of mario.

推荐答案

GameDev.net有一个教程,几乎是你想要的。

GameDev.net have a tutorial that is almost spot on for what you want.

一般来说, gamedev.net 是许多游戏编程问题的绝佳资源。

In general gamedev.net is a great resource for many game programming problems.

这篇关于OpenGL 2D示例游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆