How to make cross-platform games/apps in C++
HTML-код
- Опубликовано: 8 фев 2025
- In this video, I will explain to you how you can port your C++ games or apps to other platforms. You have to make the right choices to make your games cross-platform.
#cpp #programming #gamedev
Want to learn more? Check out this playlist:
• If you want to learn h...
Discord invite link:
/ discord
Wishlist Midnight Arrow on Steam!
store.steampow...
Music: Evan King - Let's Go!
/ contextsensitive
contextsensiti...
Average cmake user, vs average mess of shell and batch scripts enjoyer.
😂😂😂😂 yes
Very helpful and informative video!
thanks!
You know @TheCherno? Your path of learning game dev reminds me of mine. I feel like you are going to make your own GUI library at the end, like I did after working with ImGui.
I think everyone knows the cherno 🤣
alsoo
I have my own gui library 🤣😂 it is inspired by imgui and it is made for menus. You can find it on my git as glui
Pretty much magically & instantly discovered the Hazel engine & TheCherno when I decided to make my own engine.
Not sure how, probably the almighty algorithm.
Great video!!! ඞඞ
thank you, also amogus
Nice video, I'm very looking forward to watch the WinAPI tutorial :))
also looking forward to starting it 💪
i dont understand anything what you say...
C++ moment
A good experience is making a cross platform app from scratch, using only platform specific API, like WinAPI, X11, Android NDK. It's difficult but it provides a very great experience and knowledge of working with platform specific systems and you can than understand these systems much better. Also you can then make much simpler and faster abstraction, that is better than raylib or sfml.
Same for audio, which is quite difficult for Linux if you wanna use very low level API something like ALSA. But I would recommend for the first time try something like OpenAL and for Android - AAudio. Because something like ALSA may be too complicated for the first try.
And for the graphics, old good - OpenGL and OpenGLES. No need to use Vulkan or DX, unless you plan to build AAA game with very intensive graphics.
holy fuck i thought i left my settings on 2x speed
In Windows, I can compile C++ without GNU or LLVM, by using Visual C++ 2005 or Digital Mars C++. Are there ways to cross-platform without using GNU/LLVM on any platform?
there probably are but I don't know how exactly. It is called cross compiling. There is nothing about the compiling that is platform specific. There is wsl for windows and you can set it up on visual studio for example. For compiling to linux I think you still have to use gcc or clang because msvc can't comlile to linux as far as I know
You can use ziglang's build system. It can cross compile from any platform to any other. It can compile zig code (duh), as well as C and C++. It comes bundled with a bunch of platform specific headers as well.
For example you can make a Linux binary that links to gnu libc on windows by just specifying your cross compile target.
HELLO, good video! 💙🌼
thank you 💪
Cherno mentioned +1000xp
how did you test if your program works on mac?
To test on man you need someone with a mac to help you. If you want to port something with opengl on mac you need to use Opengl3.3 I think and set a special flag in glfw or something. Fortunatelly I don't plan porting on mac often
Java and JNI make hard to port to android
yeee android is not fun
ho to webgl x android
Never done that 😂😂 but probably railib is your best option
Very fast tutorial. I understand somethings but is not enough because it is not detailed
Who tf uses MacOS 💀
at least its unix so you dont have powershell 💀
I don't 😂😂😂😂
bro who cares about shells anyway 😂
🥹
I do 🗿