在 C 中学习 SDL [英] Learning SDL in C

查看:48
本文介绍了在 C 中学习 SDL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解 C 的基础知识,并且正在研究 SDL.我现在需要的是一些教程、文档或者可能是一本关于在 C 中使用 SDL 库的书,尤其是关于图形的.

I know the basics of C and I'm looking into SDL. What I need at this point are some tutorials, documentation or perhaps a book about using the SDL libraries in C, especially about graphics.

问题是我找到的每个在线资源都涉及 C++,而我正在寻找 C 语言的资源.

The problem is that every online resource that I have found deals with C++, where I am looking for resources in C.

我查看了 gpwiki.org,它有一整个关于 C 的部分,但 mingw 不会编译它,因为其中一些包含是 C++ 库(我只安装了 C 编译器).其他来源如 sol.gfxile.net/gp/说它们是 C 教程,但使用 C++ 是因为它方便地放松了变量放置规则.".SDL 网站本身的大部分教程都是基于 C++ 的.

I have looked at gpwiki.org, which had an entire section on C but mingw won't compile it because some of the includes are C++ libraries (I only installed the C compiler). Other sources like sol.gfxile.net/gp/ say that they are a C tutorial, but "use C++ for its conveniently loosened variable placement rules.". Most of the tutorials on the SDL site itself are based in C++.

有谁知道用于 SDL 编程的良好的 C 语言学习资源吗?

Does anyone know of a good learning resource in C for SDL programming?

推荐答案

看看 本系列教程.它涵盖了 C 语言的 SDL.

Have a look at this tutorial series at Parallel Realities. It covers SDL with C.

这篇关于在 C 中学习 SDL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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