I made a 2D graphics library

  Рет қаралды 5,861

Low Level Game Dev

Low Level Game Dev

4 ай бұрын

In this video I will show you how to use my 2D graphics library made in C++ with OpenGL.
#cpp #programming #gamedev #opengl
Join my Discord:
/ discord
Check out Midnight Arrow on Steam 🥵!
store.steampowered.com/app/23...
Join this channel if you want to support me 😻:
/ @lowlevelgamedev9330
Make a game in C++ full course 🤯
• Make a C++ game FULL G...
Library Repo:
github.com/meemknight/gl2d
Game Setup Repo (with this library already configured):
• Best C++ projects setu...
Music:
Evan King - Everything is Okay
Evan King - Atomic Fire
Evan King - Spicy Boom
/ contextsensitive
contextsensitive.bandcamp.com/

Пікірлер: 24
@mhdtadeveloper
@mhdtadeveloper 4 ай бұрын
I want to see gl4d library, where you can easily move and rotate objects in 4th dimension. It would be interesting to see how to render 4d objects in GL (possible idea for new video, maybe…)
@mhdtadeveloper
@mhdtadeveloper 4 ай бұрын
@@forest-dweller Ye, I saw. I want to understand how it works, maybe some tessellation and geometr shaders will help me to do that. I know that I also can use raymarching, but I don’t want.
@Finding_Fortune
@Finding_Fortune 4 ай бұрын
Nice! My only question, is can the library handle mouse clicks on rectangles after they are drawn to make buttons or similar? Would also be helpful if you wanted to make a game like Terraria where you can edit blocks
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
the library does only drawing so you can use it with any window library. There is a function to allow you to convert the mouse position into the camera's view, if you need help you can ask me on discord 💪
@smokinglife8980
@smokinglife8980 4 ай бұрын
No but it's not that hard
@requestfx5585
@requestfx5585 4 ай бұрын
Nice, really great video. But it seems like you only showed 2d aspects of the engine. It's only rendering right? So all the logic like collision and other physic stuff would you require to implemented yourself?
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
yess it is a library only for 2D and that os on purpose. For more complicated things like collisions let's say it is impossible to give a general solution that fits anyone. So this library does only 2D and if you need physics you can use any other library thar you want or make your own 💪
@lolcat69
@lolcat69 4 ай бұрын
There is also a single header+source simple 2d graphics library for C and C++called tigr.h, I didn't made it but it is really good and you just import it, add some compiler flags and you have everything ready to code :)
@adonigarcia1651
@adonigarcia1651 4 ай бұрын
Good Video, so if i create a game using sdl and opengl, can i upload that game file on steam or i have to make the game with the windows api?
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
Yes Steam doesn't care, actually there are many games made with sdl. Also any window library that you use on windows lile sdl glfw or sfml will use windows api in the end to make the window, ther's no way around it
@axorusmt7042
@axorusmt7042 4 ай бұрын
good video. i personally use xmake instead of cmake, but i still found it easy to integrate your library!
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
haven't heared of xmake but that's why I like header + source libraries they can be integrwted anywhere with ease 💪
@axorusmt7042
@axorusmt7042 4 ай бұрын
@@lowlevelgamedev9330i quite like it because it it easier to configure than cmake, and comes with its own cross platform package manager
@bluesillybeard
@bluesillybeard 4 ай бұрын
Will you be supporting other APIs like Vulkan or Metal? It would be interesting to see how you approach such a challenge. There are so many options, here are some ideas: - Just pretend the problem doesn't exist (this is somewhat what Raylib does, although they have some internal abstractions that could make porting easier) - Create an internal backend API, and the user chooses the right c++ file to link with the project for the backend (ImGui does this) - make an entirely new custom meta build system and a custom IDE just for that single library, and make the build system do the complex stuff while users are left trying to figure out just how all of it works(which is what Kinc does, to my confounding amazement) - use polymorphism to have multiple implementations of the same API, and the correct one is chosen at runtime (I am not aware of a popular library that does this) - Ignore the concept of a rendering API and just give the user a big list of objects to draw (Nuklear's solution if I'm not mistaken)
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
well rn I don't know vulkan but if I ever want to port the library to Vulkan that is very easy, only the flush clear screen load texture and create fbos commands had opengl calls so all I need to do is to remake only those and that's it. I know that some people like to use polimorphism and stuff but I just hate that idea. For one in this case it is just esier to wtire the implememtation twice since it is very small. And 2 why use polimorphism for something known at compile time, you won't change the rendering api mid program lol.
@bluesillybeard
@bluesillybeard 4 ай бұрын
@@lowlevelgamedev9330 The reason for doing it at runtime is so a single executable can support many APIs, but doing it at compile time is also good.
@cyanuranus6456
@cyanuranus6456 4 ай бұрын
What 2D Graphics? Animation?
@user-wn4wk3gq3k
@user-wn4wk3gq3k Ай бұрын
But how? How to make c++ UI library?
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
you need to learn opengl to draw stuff and than think about what ui things you want to achieve
@user-wn4wk3gq3k
@user-wn4wk3gq3k Ай бұрын
@@lowlevelgamedev9330 i know opengl, Thanks!
@catalin8446
@catalin8446 4 ай бұрын
primu
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
te pwp
@AdamNoone
@AdamNoone 4 ай бұрын
First but from nz lmao
@lowlevelgamedev9330
@lowlevelgamedev9330 4 ай бұрын
Ok I'll take it 😂
Make your first Multi-Player Game NOW! + DISCORD GAMEJAM CHALLENGE
15:11
Low Level Game Dev
Рет қаралды 4,6 М.
unlock the lowest levels of coding
7:05
Low Level Learning
Рет қаралды 227 М.
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 25 МЛН
making Multi-Player Minecraft in C++ is HARD!
10:23
Low Level Game Dev
Рет қаралды 27 М.
Why Don't You Make Your OWN Game Engine?
7:23
Skeffles
Рет қаралды 5 М.
I Made a Graphics Engine (again)
8:27
Zyger
Рет қаралды 158 М.
I made my own Programming Language
9:10
FaceDev
Рет қаралды 393 М.
I Remade Minecraft But It is Optimized!
9:39
Low Level Game Dev
Рет қаралды 92 М.
Making My Own Programming Language and Coding a Game in It
10:19
AstroSam
Рет қаралды 1,2 МЛН
I coded one project EVERY WEEK for a YEAR
13:13
Carter Semrad
Рет қаралды 494 М.
World's worst video card? The exciting conclusion
24:23
Ben Eater
Рет қаралды 2,9 МЛН
I tried coding my own graphics engine
4:23
Garbaj
Рет қаралды 185 М.