Hizmu(Vlad)
guys what are smart pointers?
when you create a pointer, you dynamically allocate memory for it with new and deallocate it with delete (or malloc and free ). With smart pointers you don't have to deallocate the memory, it is freed when the last object pointer is cleared or when the program ends.
Hizmu(Vlad)
but i dont think there are syscalls or opengl
I once searched for this topic, but the only option I found was to write my own driver for rendering or use directx
Hizmu(Vlad)
and how is the rendering driver wrote
I don’t know, I stopped at this point, I realized that at that moment I couldn’t do it + there is very little information on this topic.
Hizmu(Vlad)
yes i cant find anything on internet
I think the only option is to understand how the operating system works
/
I think the only option is to understand how the operating system works
but in the case of a bios there isnt any operating system
/
yep
can you explain me
/
explain what it is for i mean
klimi
how can i make like a gui library without using opengl
what is the reason for not using opengl?
klimi
i am asking just to know it
and do you like want to know just not opengl but even directx or vulkan?
/
and do you like want to know just not opengl but even directx or vulkan?
i want to know it because for example also in android custom recoveries i dont know how they make the UI
/
and do you like want to know just not opengl but even directx or vulkan?
i habe seen the source code of one and seems that the creator made a library
Hizmu(Vlad)
can you explain me
The simplest example is a game. Your game is constantly running cyclically showing a picture and then the player presses a key on the keyboard and the program needs to process it at the same moment, and after processing the program continues to work at the same point where it stopped. This is the interrupt. Or let's say, the same example, your program shows an image and then some data comes to its input, mathematical calculations that need to be urgently processed and your program stops at this moment, does mathematical calculations, then returns back to the point where it stopped.
/
i think that uses opengl as well
i dont see any import for opengl
/
i think that uses opengl as well
https://github.com/TeamWin/Team-Win-Recovery-Project/blob/android-9.0/gui/gui.cpp
klimi
https://github.com/TeamWin/Team-Win-Recovery-Project/blob/android-9.0/gui/gui.cpp
it seems they use https://github.com/droidian/android-minui for the graphics
klimi
yes
which are functions or something that are provided by the firmware I think, as written here https://programmer.help/blogs/analysis-of-android-recovery-ui-implementation.html
klimi
another project https://github.com/omnirom/android_bootable_recovery/tree/android-9.0/minui Where you can see that they allow adf, drm and fbdev as backends
klimi
and how do it calls the firmware functions
they call functions in #include <xf86drm.h> #include <xf86drmMode.h> it seems (for drm)
klimi
what is the file with that
dunno, i have to search everything like you do
/
dunno, i have to search everything like you do
i mean where you found that includes
klimi
i mean where you found that includes
https://github.com/CPFL/drm/blob/master/xf86drm.h
klimi
i mean where you found that includes
https://github.com/omnirom/android_bootable_recovery/blob/android-9.0/minui/graphics_drm.cpp
klimi
https://github.com/CPFL/drm/blob/master/xf86drm.h
and this communicates with /dev/dri with linux kernel
Hizmu(Vlad)
https://github.com/CPFL/drm/blob/master/xf86drm.h
it is also here https://github.com/grate-driver/libdrm/blob/master/xf86drm.h
klimi
and this communicates with /dev/dri with linux kernel
so it boils down to https://en.wikipedia.org/wiki/Direct_Rendering_Manager
klimi
where you seen it
https://github.com/CPFL/drm/blob/master/xf86drm.h#L79
/
i have to go now
klimi
and is the drm another program
drm is an api layer provided by linux kernel
klimi
but you were right, you don't have to use opengl to draw things
Hizmu(Vlad)
and is the drm another program
Maybe these books will help you... https://www.amazon.com/The-BIOS-Companion-doesnt-motherboard/dp/0968192807 https://www.amazon.com/BIOS-Disassembly-Ninjutsu-Uncovered/dp/1931769605 https://www.amazon.com/Breaking-Through-BIOS-Barrier-Optimization/dp/0131455362
Hizmu(Vlad)
and is the drm another program
or here is an example of creating a bios https://pete.akeo.ie/2011/06/crafting-bios-from-scratch.html
Shivam
Can anyone recommend me a book or a website to learn c++ programming?
Shivam
👍
SR27
int *ptr=(int *)200; what does (int *) means ?
SR27
is it valid statement int *ptr=(int *)200; i mean assigning ptr adderess 200 ?
SR27
it might happen that address 200 may not exist or it is read only ?
Anonymous
hello does anyone know how to hook a function with c++
Gionny
Hello, if i have function like this: int Myfunction(int, int){ return x + y; } int main(){ Myfunction(5,6); } How can I tell the function that X and Y are 5 and 6 without change function in Myfunction(int x, int y)?
Anonymous
for windows
Anonymous
and the programme i'm trying to hook its function is 86
Gionny
Because the compiler returns error
Hussein
how can i make like a gui library without using opengl
on linux you can use frame buffer with no desktop environment
Gionny
i am using mutation testing software and when it modifies the function it modifies it like this. Consequently, the compiler returns an error because it does not recognize X and Y inside the function.
Gionny
do you know how i can solve?
Gionny
Yes the function is like this but the software modifies it in this way😭
Gionny
And the compiler returns errors
Gionny
Isn't there a way to make the function understand that x and y are the past ones?
Hussein
and how is the rendering driver wrote
every graphics card has a driver that usually does not allow you to write your own from scratch you can read about techniques used in writing device drivers in general but no one will give you the codes in assembly so that you can flash programs on your gpu
Gionny
Now i try, thanks