Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbFillMemory() not available?

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 2nd Sep 2011 12:40
Hi, I remember in DBP there was a Fill memory command that you could use to write to the backbuffer! It doesn't seem to exist in DarkGDK. Does anyone know a way to write to the backbuffer, in the same style Fillmemory used to work like?
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 2nd Sep 2011 16:54
Without having proper look, I do know you can retrieve the back buffers pointer, pitch, width and height and use the standard C memcpy() and memset() functions.

Warning! May contain Nuts!
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 3rd Sep 2011 00:24
dbCLS(dbRGB(255,0,0));

The fastest code is the code never written.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 10th Oct 2011 03:03
IIRC, DBP's fill memory function is basically a wrapper for the memset function (include stdio.h).


"Why do programmers get Halloween and Christmas mixed up?"
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 2nd Nov 2011 22:55
And sometimes the "header" for DarkGDK is missing functions that ARE there, if you know the call, and data types you can add it to the header, and compile with your fingers crossed. Backup your darkgdk.h before messing about

Login to post a reply

Server time is: 2024-10-02 21:30:30
Your offset time is: 2024-10-02 21:30:30