SDL2 和 3D 渲染 [英] SDL2 and 3D Rendering

查看:51
本文介绍了SDL2 和 3D 渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SDL2 是否能够在不使用 OpenGL 的情况下以 3D 形式渲染事物(即制作立方体、球体等),还是仅具有 2D 能力?

Does SDL2 have the capability to render things in 3D (i.e. make cubes, spheres, etc.) without the use of OpenGL, or does it only have 2D capabilities?

推荐答案

你的问题在 GameDev Stackexchange 上会更好,但只是简单回答您的问题:SDL2 本身没有渲染 3D 对象的功能.这也在 SDLs about 页面中有说明:

Your question would be better off on GameDev Stackexchange but to simply answer your question: SDL2 itself has no capabilities to render 3D objects. This is also stated in SDLs about page:

Simple DirectMedia Layer 是一个跨平台开发库,旨在通过 OpenGL 和 Direct3D 提供对音频、键盘、鼠标、操纵杆和图形硬件的低级访问

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D

SDL 提供了一些功能来帮助您简化 OpenGL 的使用,但您必须学习和使用 OpenGL 才能渲染 2D 和 3D 矢量图形.

SDL provides some functions to help you ease the use of OpenGL, but you'll have to learn and use OpenGL to allow rendering 2D and 3D vector graphics.

this 站点是我推荐的有关 SDL 基础知识的一个很好的教程.它只有一些与使用 OpenGL 相关的章节,但如果您没有过多使用 SDL,这是一个很好的开始.

A good tutorial that I'd recommend on the basics of SDL is this site. It only has some chapters related to the use of OpenGL, but if you haven't used SDL much, this is a great start.

这篇关于SDL2 和 3D 渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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