colores y sombras
colores y sombras
colores y sombras
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Colores y <strong>sombras</strong> 42<br />
}<br />
// Borra la paleta si fue creada<br />
if (hPalette)<br />
DeleteObject(hPalette);<br />
return 0;<br />
/////////////////////////////////////////////////////<br />
// Creacion de la ventana para la aplicación<br />
/////////////////////////////////////////////////////<br />
HWND CreateOpenGLWindow(char* title, int x, int y, int<br />
width, int height,<br />
{<br />
BYTE type, DWORD flags)<br />
int n, pf;<br />
HWND hWnd; //<br />
Almacenamiento para la gestion de Ventana<br />
clase de Windows<br />
WNDCLASS wc; // Estructura de<br />
LOGPALETTE* lpPal; // Puntero a<br />
memoria para la paleta logica<br />
PIXELFORMATDESCRIPTOR pfd; // Descriptor<br />
del formato de pixel<br />
almacenamiento<br />
vez<br />
static HINSTANCE hInstance = 0; // Instancia de<br />
// Tan solo registro la clase de la ventana una<br />
// uso hInstance como un flag<br />
if (!hInstance) {<br />
hInstance = GetModuleHandle(NULL);<br />
// Registra el estilo de la Ventana<br />
wc.style = CS_OWNDC;