Forums » C++ Framework » How to resize Opengles Surface ? »
| Valentin Vit | How to resize Opengles Surface ? | ||
|---|---|---|---|
|
Added by Valentin Vit almost 2 years ago
Hello, I am trying to resize the window and the opengl Surface; I did the following modification in CCEGL_View_win32.cpp I have added resize event and viewport size modifications . case WM_SIZE:
{
The window is resized but the opengles surface does not. I need to destroy the surface and recreate it ? It is not enough to change the viewport dimensions ? |
||
| WenSheng Yang | RE: How to resize Opengles Surface ? | ||
|
Added by WenSheng Yang almost 2 years ago
Yes, you need delete the CCEGL and recreate it. |
(1-1/1)