Тёмный

I made a 2D graphics library 

Low Level Game Dev
Подписаться 37 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@mhdta_dev
@mhdta_dev 8 месяцев назад
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…)
@mhdta_dev
@mhdta_dev 8 месяцев назад
@@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 8 месяцев назад
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 8 месяцев назад
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 8 месяцев назад
No but it's not that hard
@requestfx5585
@requestfx5585 8 месяцев назад
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 8 месяцев назад
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 8 месяцев назад
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 :)
@axorusmt7042
@axorusmt7042 8 месяцев назад
good video. i personally use xmake instead of cmake, but i still found it easy to integrate your library!
@lowlevelgamedev9330
@lowlevelgamedev9330 8 месяцев назад
haven't heared of xmake but that's why I like header + source libraries they can be integrwted anywhere with ease 💪
@axorusmt7042
@axorusmt7042 8 месяцев назад
@@lowlevelgamedev9330i quite like it because it it easier to configure than cmake, and comes with its own cross platform package manager
@bluesillybeard
@bluesillybeard 8 месяцев назад
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 8 месяцев назад
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 8 месяцев назад
@@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.
@adonigarcia1651
@adonigarcia1651 8 месяцев назад
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 8 месяцев назад
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
@cyanuranus6456
@cyanuranus6456 8 месяцев назад
What 2D Graphics? Animation?
@Сергей-и4б7к
@Сергей-и4б7к 6 месяцев назад
But how? How to make c++ UI library?
@lowlevelgamedev9330
@lowlevelgamedev9330 6 месяцев назад
you need to learn opengl to draw stuff and than think about what ui things you want to achieve
@Сергей-и4б7к
@Сергей-и4б7к 6 месяцев назад
@@lowlevelgamedev9330 i know opengl, Thanks!
@catalin8446
@catalin8446 8 месяцев назад
primu
@lowlevelgamedev9330
@lowlevelgamedev9330 8 месяцев назад
te pwp
@AdamNoone
@AdamNoone 8 месяцев назад
First but from nz lmao
@lowlevelgamedev9330
@lowlevelgamedev9330 8 месяцев назад
Ok I'll take it 😂
Далее
I made a 3D renderer in Opengl!
4:31
Просмотров 19 тыс.
I tricked MrBeast into giving me his channel
00:58
Просмотров 11 млн
What size should your assets be? | HD 2D GAME ART
12:10
How I Made a 3D Platformer in 2D Game Engine
21:23
Просмотров 525 тыс.
Switch IS NOT FASTER than if, (in C++)
11:39
Просмотров 52 тыс.
Starting Your Unity Game Flawlessly (8 Steps)
9:51
Просмотров 12 тыс.
I Made a Graphics Engine (again)
8:27
Просмотров 175 тыс.
Optimizing my Game so it Runs on a Potato
19:02
Просмотров 629 тыс.
I Made a Drawing Software From Scratch (C++ & OpenGL)
11:05