Revision 12f45260
Added by Leszek Koltunski about 6 years ago
src/main/java/org/distorted/library/main/DistortedFramebuffer.java | ||
---|---|---|
39 | 39 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
40 | 40 |
// Must be called from a thread holding OpenGL Context |
41 | 41 |
|
42 |
void create() |
|
42 |
void createSurface()
|
|
43 | 43 |
{ |
44 | 44 |
if( mColorCreated==NOT_CREATED_YET ) |
45 | 45 |
{ |
... | ... | |
135 | 135 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
136 | 136 |
// Must be called from a thread holding OpenGL Context |
137 | 137 |
|
138 |
void delete() |
|
138 |
void deleteSurface()
|
|
139 | 139 |
{ |
140 | 140 |
if( mColorH[0]>0 ) |
141 | 141 |
{ |
... | ... | |
158 | 158 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
159 | 159 |
// called from onDestroy(); mark OpenGL assets as 'not created' |
160 | 160 |
|
161 |
void recreate() |
|
161 |
void recreateSurface()
|
|
162 | 162 |
{ |
163 | 163 |
if( mColorCreated!=DONT_CREATE ) |
164 | 164 |
{ |
Also available in: Unified diff
First try at the SSBO (doesn't work - reads in the application don't pick up changes in the shader; crashes.