how to create graphics libreries to work with graphic card? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to create graphics libreries to work with graphic card?

i would like to run some big for loops in creating graphic, does anyone know how?

26th Mar 2019, 9:15 PM
nicolas turek
nicolas turek - avatar
8 Answers
+ 2
Personally, I only know some outdated (32-bit) CPU programming. But GPU direct programming is still much in use, especially with stuff like cracking encryptions and crypto-mining, but also serious scientific number-crunching. As to if somebody still knows how to create a graphics engine from scratch: yes, new ones and updates come out constantly. As to seriously low-level stuff, I'd say that's a rare beast. However, there are people who write drivers for specific models of video chip for a given system. There are people who maintain & update the graphics stack of a given system. There are folks who write APIs to provide more abstract, portable code on a system or, like OpenGL, across multiple systems. In short: Yes, but you'll not likely find them on SL. If you're interested in learning, I can bet a month's salary there's a few free e-books. You'll probably have to learn from a Linux or BSD perspective (I suggest the former) coz both are OSS.
28th Mar 2019, 10:36 PM
non
+ 1
I don't think you quite get how software/hardware work. Basically, you need to start by using something small like SDL or SFML for graphics. They handle everything for you. If you still wanna create graphics libs, cool, but it's a long journey and we're on the precipice of big change with Vulkan coming in. Mayhaps you could clarify what you want to do. An objective would help.
26th Mar 2019, 9:55 PM
non
0
well... i would like to make some game with particles, processor is enough when i want to do it with small emount, but when it gets to larger numbers it's too slow so i want to use graphic card, which has more cores...
27th Mar 2019, 5:52 AM
nicolas turek
nicolas turek - avatar
0
i know i could do it with array(bool), which could hold informations about each pixel (is/not ocupied) but this variant has more uses
27th Mar 2019, 5:56 AM
nicolas turek
nicolas turek - avatar
0
If you're making a game with particles, I strongly suggest a full-on engine. Here are some: 1. Unreal Engine (UE) 2. Unity (2D or 3D) 3. OGRE Builds for: 1. Windows, Linux, Mac, Android, Consoles. 2. Windows, Linux, Mac, Android, ?? 3. Windows, Linux, ?? Runs on: 1. Windows, Mac, Linux (building needed) 2. Windows, Mac, ?? 3. Any system supporting Code::Blocks Licence: 1. Free up to N dollars. 2. Free under ?? circumstances. 3. 100% free. Engines like these are used by AAA & indie games alike. They allow you control over minute details or they handle them for you. There are many engines out there that'll fulfill your needs. I recommend this rather than "reinventing the wheel".
27th Mar 2019, 11:37 PM
non
0
well...i know about engines... but i like doing not neccesary things to learn, how it can works... i only wanted to know, if still exists someone who knows it
28th Mar 2019, 5:57 AM
nicolas turek
nicolas turek - avatar
0
after all... this is soloLEARN, not stackoverflow...
28th Mar 2019, 6:01 AM
nicolas turek
nicolas turek - avatar
0
ok, thanks
29th Mar 2019, 5:18 AM
nicolas turek
nicolas turek - avatar