Revision ed13a5de
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/Distorted.java | ||
---|---|---|
91 | 91 |
static int mTextureCoordH; // pass in model texture coordinate information. |
92 | 92 |
static int mProgramH; // This is a handle to our shading program. |
93 | 93 |
|
94 |
static DistortedRenderTarget mRenderTarget = new DistortedRenderTarget(0);
|
|
94 |
static DistortedFramebuffer mFramebuffer = new DistortedFramebuffer(0);
|
|
95 | 95 |
|
96 | 96 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
97 | 97 |
|
... | ... | |
292 | 292 |
*/ |
293 | 293 |
public static void setFov(float fov) |
294 | 294 |
{ |
295 |
mRenderTarget.setProjection(fov,0.0f,0.0f);
|
|
295 |
mFramebuffer.setProjection(fov,0.0f,0.0f);
|
|
296 | 296 |
} |
297 | 297 |
|
298 | 298 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
362 | 362 |
*/ |
363 | 363 |
public static void onSurfaceChanged(int surfaceWidth, int surfaceHeight) |
364 | 364 |
{ |
365 |
mRenderTarget.resize(surfaceWidth,surfaceHeight);
|
|
365 |
mFramebuffer.resize(surfaceWidth,surfaceHeight);
|
|
366 | 366 |
} |
367 | 367 |
|
368 | 368 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Cleanup