Jump to content

  • Log In with Google      Sign In   
  • Create Account

jusa

Member Since 23 Mar 2007
Offline Last Active Today, 01:27 AM

Posts I've Made

In Topic: Why GLSL noise only produces a black color?

30 April 2010 - 11:12 PM

^ Great, that tutorial will be handy later on.

In Topic: Why GLSL noise only produces a black color?

30 April 2010 - 08:53 PM

Oh. How sad. At least that explains why it didn't work. Thanks!

In Topic: Typedef struct-pointer-pointer shortcut in C

23 January 2010 - 09:09 PM

Ah, okay. That explains it. Thanks!

In Topic: Why is screen not rendering black?

10 July 2009 - 03:46 AM

It seems you're not actually calling Render anywhere. I might be wrong since it's a long time since I've done any C++/Windows programming. You could try the following and see if it helps:


case WM_PAINT:
hdc = BeginPaint( hWnd, &ps );
Render(); // Try calling Render here
EndPaint( hWnd, &ps );
break;



EDIT: Erik beat me to it ;)

In Topic: Why is screen not rendering black?

10 July 2009 - 03:33 AM

Is it currently rendering the window in white?

Try changing: float ClearColor[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
into: float ClearColor[4] = { 0.0f, 0.0f, 0.0f, 1.0f };

The value 0.0f can be thought of as "no color" and 1.0f as "full color", at least in OpenGL. That's why setting all but the alpha to 0.0 should make black color.

PARTNERS