Sign in to follow this  
codenine75a

using old 2d graphics with a new pipeline

Recommended Posts

I am going to use old 2D graphics at a high resolution. The idea is to bring old 2D graphics to a higher resolution. I think it can be easily done with 1600x1280 now by using 64bit or 128bit variables and a big variable for the pointer to a directx surface like this:
unsigned long long *surface;
surface = (unsigned long long *)directdrawsurface;
..and then set the graphics accordingly with
surface[0] = RGBAcolor;

Share this post


Link to post
Share on other sites
[quote name='codenine75a' timestamp='1318683240' post='4872825']
I am going to use old 2D graphics at a high resolution. The idea is to bring old 2D graphics to a higher resolution. I think it can be easily done with 1600x1280 now by using 64bit or 128bit variables and a big variable for the pointer to a directx surface like this:
unsigned long long *surface;
surface = (unsigned long long *)directdrawsurface;
..and then set the graphics accordingly with
surface[0] = RGBAcolor;
[/quote]

yup works just fine.

[code]highres_surface->Lock(NULL,&ddsurfacedesc,DDLOCK_WRITEONLY|DDLOCK_NOSYSLOCK,NULL);
//highres_surface->Lock(NULL,&ddsurfacedesc,DDLOCK_WRITEONLY,NULL);
unsigned long long *s = (unsigned long long *)ddsurfacedesc.lpSurface;
s[0]=0;
highres_surface->Unlock(NULL);[/code]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this