winapi现在还在使用吗? [英] Is winapi still used nowadays?

查看:79
本文介绍了winapi现在还在使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经学习了一些关于WinAPI的基础知识,现在我想尝试创建一些2D简单(可能是后来更复杂)的游戏。据我所知,像SDL,SFML等库只是围绕本机Win32 API的包装。



我发现很多类似的问题,但他们都声称SDL,SFML等比WinAPI更好,因为它们比WinAPI更便携,更容易学习。我现在不需要将我的游戏移植到其他平台上,我不认为WinAPI太难了,为什么我需要使用SDL?



我想知道现在用于游戏开发的内容。我的意思是,我知道很多主要的游戏都不是从头开始创建的,而是从现有的游戏引擎创建的。但我不想使用游戏引擎或现有代码,我想从头开始编码。



据我所知,裸OpenGL不存在,我还是要使用其他一些库,如Win32 API或其他(SDL,SFML,... )。



所以我要问的是:游戏开发中通常使用的是什么。它是原生方式Win32 API,还是SDL,SFML等一些外部库?游戏引擎用什么渲染图形?



另外,我发现有些项目仍在使用Winpad如Notepad ++。



我尝试过:



在互联网上搜索,但一无所获。

解决方案

我认为,答案取决于你想要开发什么类型的游戏以及什么是目标平台......我确信WinApi仍然用于游戏开发(直接或间接)。



请阅读:视频游戏开发 - 维基百科,免费的百科全书 [ ^ ]并且:游戏引擎列表 - 维基百科,免费百科全书 [ ^ ]。

I've learned some basics on WinAPI and I now want to experiment with creating some 2D simple (maybe later more complex) games. As I understand libraries like SDL,SFML,etc, are just wrappers around "native" Win32 API.

I found of lot similar questions, however they all claimed that SDL,SFML,etc are better than WinAPI because they are portable and easier to learn than WinAPI. I won't need to port my "game"(s) to other platforms now and I don't think that WinAPI is so hard, so why would I need to use SDL?

I want to know what is used for game development nowadays. I mean, I know that vastly major of games aren't created from scratch but from already existing game engine. But I don't want to use game engines, or existing code, I want to code from scratch.

As I understand, bare OpenGL doesn't exist, I'll have to still use some other library like Win32 API or others (SDL,SFML,...).

So what I'm asking is: What is usually used in game development. Is it "native way" Win32 API, or some external libraries like SDL,SFML,...? What do game engines use to render graphics?

Also, I found that some projects are still using WinAPI like Notepad++.

What I have tried:

Searched on the internet, but found nothing.

解决方案

I think, the answer depends on what kind of game you want to develop and what is destination platform... I'm sure that WinApi is still used in game developement (directly or indirectly).

Please, read this: Video game development - Wikipedia, the free encyclopedia[^] and this: List of game engines - Wikipedia, the free encyclopedia[^].


这篇关于winapi现在还在使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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