Revision 23eecbd9
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
183 | 183 |
* @param width Width of the COLOR attachment. |
184 | 184 |
* @param height Height of the COLOR attachment. |
185 | 185 |
* @param depthStencil Add DEPTH or STENCIL attachment? |
186 |
* Valid values: NO_DEPTH_STENCIL, DEPTH_NO_STENCIL, BOTH_DEPTH_STENCIL. |
|
186 |
* Valid values: NO_DEPTH_NO_STENCIL, DEPTH_NO_STENCIL, BOTH_DEPTH_STENCIL.
|
|
187 | 187 |
*/ |
188 | 188 |
@SuppressWarnings("unused") |
189 | 189 |
public DistortedFramebuffer(int width, int height, int depthStencil) |
... | ... | |
202 | 202 |
@SuppressWarnings("unused") |
203 | 203 |
public DistortedFramebuffer(int width, int height) |
204 | 204 |
{ |
205 |
super(width,height,NOT_CREATED_YET,NO_DEPTH_STENCIL,NOT_CREATED_YET,TYPE_USER);
|
|
205 |
super(width,height,NOT_CREATED_YET, NO_DEPTH_NO_STENCIL,NOT_CREATED_YET,TYPE_USER);
|
|
206 | 206 |
} |
207 | 207 |
|
208 | 208 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
227 | 227 |
/** |
228 | 228 |
* Enable.disable DEPTH and STENCIL buffers. |
229 | 229 |
* |
230 |
* @param depthStencil Valid values: NO_DEPTH_STENCIL, DEPTH_NO_STENCIL, BOTH_DEPTH_STENCIL. |
|
230 |
* @param depthStencil Valid values: NO_DEPTH_NO_STENCIL, DEPTH_NO_STENCIL, BOTH_DEPTH_STENCIL.
|
|
231 | 231 |
*/ |
232 | 232 |
public void enableDepthStencil(int depthStencil) |
233 | 233 |
{ |
234 |
if( depthStencil!=NO_DEPTH_STENCIL && mDepthStencilCreated==DONT_CREATE )
|
|
234 |
if( depthStencil!= NO_DEPTH_NO_STENCIL && mDepthStencilCreated==DONT_CREATE )
|
|
235 | 235 |
{ |
236 | 236 |
mDepthStencilCreated = NOT_CREATED_YET; |
237 | 237 |
mDepthStencil = depthStencil; |
... | ... | |
243 | 243 |
|
244 | 244 |
markForCreation(); |
245 | 245 |
} |
246 |
if( depthStencil==NO_DEPTH_STENCIL && mDepthStencilCreated!=DONT_CREATE )
|
|
246 |
if( depthStencil== NO_DEPTH_NO_STENCIL && mDepthStencilCreated!=DONT_CREATE )
|
|
247 | 247 |
{ |
248 | 248 |
mDepthStencilCreated = DONT_CREATE; |
249 | 249 |
mDepthStencil = depthStencil; |
Also available in: Unified diff
Progress with Stencil app. Rendering through an intermediate FBO still doesn't quite work.