Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Scourage

Member Since 29 Jan 2000
Online Last Active Today, 03:01 PM

Topics I've Started

SDL and multiple windows

08 December 2005 - 02:12 PM

I'm building a GUI using OpenGL and SDL and I was wondering if there was a way I could create multiple windows from my application or does SDL only allow for one window per application? I'm looking for actual window system windows, but I'm thinking I'll have to create SDL surfaces and manage them myself. Cheers, Bob

SDL_CreateCursor Access Violation?

23 June 2005 - 05:04 PM

For some reason this code causes an access violation (segmentation fault) when it runs. It occurs on the line with the SDL_CreateCursor call in it. I'm not sure exactly why that is, I've tried quite a few things and can't figure what memory is getting stomped on. Anybody with any ideas? The rest of my project works fine without the pointer code in it. Cheers, Bob
void NIGHT_system::load_cursors()
{
//your standard pointy cursor

    static unsigned char pointer_bit_map[]={			
			0x03,  0x00, 0x05,  0x00, 0x09,  0x00, 0x11,  0x00,
			0x21,  0x00, 0x41,  0x00, 0x81,  0x00, 0x01,  0x01,
			0x01,  0x02, 0xc1,  0x03, 0x49,  0x00, 0x8d,  0x00,
			0x8b,  0x00, 0x10,  0x01, 0x90,  0x01, 0x60,  0x00
		};
    static unsigned char pointer_bit_mask[]={	
            0x03,  0x00,  0x07,  0x00,  0x0f,  0x00,  0x1f,  0x00,
			0x3f,  0x00,  0x7f,  0x00,  0xff,  0x00,  0xff,  0x01,
			0xff,  0x03,  0xff,  0x03,  0x7f,  0x00,  0xff,  0x00,
			0xfb,  0x00,  0xf0,  0x01,  0xf0,  0x01,  0x60,  0x00 
		};
		
    SDL_Cursor* temp_cursor;
    	
    temp_cursor=SDL_CreateCursor(pointer_bit_map, pointer_bit_mask, 16,16,6,7);

..etc through the rest of the cursors. 

Reading from Video Card

21 June 2005 - 02:10 AM

I am working on a project where we are discussing using the GPU to do High Definition video processing. The question then becomes, what is the best way to get the edited video stream from the video card back to the hard drive? What would be the implications of using the GPU to do video processing? Cheers, Bob

PARTNERS