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 / Help translating from DBPro to DGDK?

Author
Message
Aura Art
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 30th Sep 2008 00:34
How would this translate to DGDK?

copy memory get pixels pointer(), get memblock ptr(1), 1920000

I am trying to put the visuals from my memblock("virtual screen") to the monitor.
So I can speed up my future 2d games, insted of using "DBdot".

Thank you for any assistance.
Aura Art
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 30th Sep 2008 10:27
I am still trying to resolve issues with some of the memblock commands.

I can't get this command to work:
dbMakeImageFromMemblock

I am confused about how to use the data bits properly.
And I can't seem to get anything into the image.
As if the memblock is empty when I convert it.

I paste the image on screen and nothing.


What I am planning to do, is get data into memblock, put the data in the memblock on the screen, have an option to save the data.

I want to make functions that generate textures for D DGK games.
Meaning, creating a new texture from scratch.

Please help me.

I have gotten zero results until now.
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 30th Sep 2008 12:51
Some where in this forum u can find an DBP->CPP DGDK
Work pretty well expect a few buys with types and things.

Aura Art
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 30th Sep 2008 17:03
I am planning to translate that specific command.

I want to dump the contents of a memblock on the screen directly.

Ie:

dbLockPixels();

// some command to copy the contents of a memblock onto the screen

dbUnLockPixels();

Login to post a reply

Server time is: 2024-11-25 03:35:16
Your offset time is: 2024-11-25 03:35:16