20 SDL_Init(SDL_INIT_VIDEO);
27 return "SDLImageConnector";
37 window = SDL_SetVideoMode( 512, 512, 32, SDL_HWSURFACE );
42 while ( SDL_PollEvent( &event ) == 1 )
44 if (event.type == SDL_QUIT)
54 if (group == message->
group)
57 SDL_FreeSurface(window);
58 window = SDL_SetVideoMode( 512, 512, 32, SDL_HWSURFACE );
65 group = message->
group;
66 SDL_FreeSurface(window);
69 if (group == message->
group)
71 SDL_LockSurface( window );
72 uint8_t* pixels = (uint8_t*)(window->pixels);
75 for (
int j = 0; j < 3; j++)
79 SDL_UnlockSurface( window );
87 SDL_FreeSurface(window);
ImageBufferContainer * clientGetMessage()
errorCode clientSendMessage(ImageBufferContainer *message)
InsituConnectorGroup * group
errorCode init(int minport, int maxport)
int getFramebufferHeight()
int getFramebufferWidth()