如何在不使用任何框架或库的情况下在屏幕上绘制图形? [英] How to draw graphics on screen without using any framework or library?

查看:147
本文介绍了如何在不使用任何框架或库的情况下在屏幕上绘制图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想手动绘制图形,这意味着什么,而不使用任何库或框架工作,如QT,directX,whindow.h ....喜欢给予命令屏幕上的每个像素,以显示不同的特定颜色时间。每个机构都会根据这些图书馆或他们所称的任何内容提供教程。我想要的是制作我自己的GUI。就我所能想到的来说,这将会非常复杂,很难学习和理解,很麻烦并且耗费大量时间,但我已经为此做好了准备。我需要一些资源来理解这一点。



是的,我知道C ++,所以如果我必须使用这种语言,它会更好,但如果需要,我会学习其他语言,只是我想知道我应该学习哪种语言。

解决方案

在过去,您可以直接写入视频内存没有操作系统/ ROM的帮助。今天,在当前的硬件上,您必须通过操作系统才能写入屏幕。这意味着使用单独的库(如Qt)或使用OS功能(windows.h)。你可以使用directX或其他东西,并获得对视频内存的更多原始访问,但仍然使用库/框架。


I want to manually draw the graphics, what that mean is without using any library or frame work like QT, directX , whindow.h .... like giving command to every pixels on the screen to show some specific color at different time. Every body gives tutorials on based on these library or whatever they are called. What i want is to make my own GUI. As far as I could think it is going to be very complicated, hard to learn and to understand, messy and a lot of time consuming, but I am ready for that. I need some resources to understand that.

and Yes i know C++ so it would better if I had to work with this language but I will learn other language if it is required, just i want to know which language i should learn.

解决方案

In the old days, you could write directly to video memory with no help from the operating system/ROM. Today, on current hardware, you have to go through the operating system in order to write to the screen. That means using a separate library (like Qt) or using the OS features (windows.h). You could use directX or something and get more raw access to video memory, but that is still using a library/framework.

这篇关于如何在不使用任何框架或库的情况下在屏幕上绘制图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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