hello I am trying to do graphics on windows and I would very much like to do it by writing to the video buffer directly rather than with the gdi or by learning how to use openGL or what have you, ken silverman's build 2 engine is a win32 application and he says it uses self-modifying code so surely it must be accessing memory directly right?? he also says it triggers antiviruses a lot so maybe it does it with crazy hacks I wouldn't want to deal with but if there's a relatively simple way of doing it please tell me! taskete onegaishimasu!
INSTALL DOS
LIVE FREE
>>2
but I want to sell my graphics program for money so people need to be able to use it
It sounds like the safest way to draw to the screen is through the GDI, OpenGL, and DirectX. You will be fighting the anti-virus and malware protection systems when trying to do it your way.
>>4
but I already have to deal with win32 I don't wanna have to learn another shitty pseudo-language like GLSL, and the GDI is so sloooooooowww
windows
sell my graphics program for money
That smells like Microshit.
Embrace free and open source software!
>>6
Money.
>>5
Enjoy your anti-virus shutdown
Device Manager lists the physical address of the framebuffer under
Display Adapters > Resources, which you can pass to MmMapIoSpace to get
the nonpaged virtual address. You can draw directly on the framebuffer
using that address like /dev/fb0
If you want to create a window-relative framebuffer then you necessarily
have to go through the Window's API to request it before drawing, the
simplest way seems to be using BitBlt to draw a bitmap after requesting
a device context handle: https://solhsa.com/wintut/ch3.html
For self modifying code you need mmap or its windows analog.
Both support remapping memory as executable.
Only iOS doesn't allow self modifying code.
Because Apple wants to completely control what is allowed to execute.
They even ban virtual machines, including Lisp systems.
They even ban virtual machines, including Lisp systems.
I hate crapple now
>>11
They're the gayest OS vendor out there.
>>9
pls gib more info about this method
>>9
pls
OP wants highly technical information that needs a high level of precision. Yet, he can't even use proper English grammar. How ironic.
>>9
pls
>>9
pls
memory leprechauns
INSTALL FREEDOS
LIVE FREE 2 TIMES
>>20
NO! Money!
>>9
pls
Install TempleOS. It let's you do that and more.
Stop telling me to install other operating systems!
>>24 Install other operating systems!
Install Gentoo
>>9
pls
>>9
please sir there is famine in my village sir if I do not write the fast enough graphics program my family will starve sir please to tell me more of the information sir
If you're going to write to the video buffer directly, you're going to be fighting with whatever else writes to the video buffer. This is why you're supposed to use something like openGL, which integrates itself into existing video buffer writes.
>>29
then I will write to the video buffer faster than it can
>>30
Totally doable, you just need the willpower to make your code run faster than all the other code on the same machine
>>31
which I can do easily, since I write in assembler
What is it with retards that refuse to take advice but also insist that they can also contradict the advice given.
what is it with retards that refuse to give information they've been politely asked for eight times in a row
>>34
There it is. Bravo work.
>>35
tell me what I want to know or I'll find you and beat it out of you!
>>35
tell me!
This thread is beautiful & exemplary.
Now to study swordsmanship with a hammer.
YOU'RE ALL JUST JEALOUS OF HOW AWESOME MY GRAPHICS PRORAM IS GOING TO BE WHICH YOU COULD NEVER MATCH BECAUSE YOU'RE ALL TOO SCARED OF DADDY BILL GATES TO CODE ANY OTHER WAY THAN THE WAY HE WANTS YOU TO I HATE YOU I HATE YOU I HATE YOU I HATE YOU
Is this thread just an elaborate troll? I must admit, I have been trolled by this thread.
oh my god why do they ALWAYS say that
hello could you help me with this problem I'm having?
fuck you
I feel that I'm being mistreated here
aha see he was just trying to troll us!
The opposite would be
Did stackoverflow ban me?
Why can't I read answer 272949?
Let me go to liberal textboard.org and ask
Wait, why I am being to to go to step one?