如何在不使用任何框架或库的情况下在屏幕上绘制图形? [英] How to draw graphics on screen without using any framework or library?
问题描述
是的,我知道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屋!