30 namespace cinder {
namespace dx {
236 Obj(
int aWidth,
int aHeight );
279 virtual const char *
what()
const throw() {
return mMessage; }
void reset()
Emulates shared_ptr-like behavior.
Definition: DxRenderTarget.h:267
static RenderTargetRef create(int width, int height, Format format=Format())
Creates an FBO width pixels wide and height pixels high, using Fbo::Format format.
Definition: DxRenderTarget.cpp:202
void blitTo(RenderTarget dst, const Area &srcArea, const Area &dstArea, GLenum filter=GL_NEAREST, GLbitfield mask=GL_COLOR_BUFFER_BIT) const
Returns the ID of the framebuffer itself. For antialiased FBOs this is the ID of the output multisamp...
Definition: DxRenderTarget.cpp:622
static int getMaxAttachments()
Returns the maximum number of color attachments the graphics card is capable of using for an Fbo...
Definition: DxRenderTarget.cpp:613
float getAspectRatio() const
Returns the aspect ratio of the FBO.
Definition: DxRenderTarget.h:114
dx::TextureRef mDepthTexture
Definition: DxRenderTarget.h:251
GLsizei const GLchar ** string
Definition: GLee.h:2427
bool checkStatus(class RenderTargetExceptionInvalidSpecification *resultExc)
Definition: DxRenderTarget.cpp:564
int mWidth
Definition: DxRenderTarget.h:239
virtual const char * what() const
Definition: DxRenderTarget.h:279
GLenum GLsizei width
Definition: GLee.h:969
void unbindTexture()
Unbinds the texture associated with an Fbo's target.
Definition: DxRenderTarget.cpp:483
std::shared_ptr< Texture > TextureRef
Definition: dx.h:61
#define GL_NEAREST
Definition: gldx.h:933
void blitToScreen(const Area &srcArea, const Area &dstArea, GLenum filter=GL_NEAREST, GLbitfield mask=GL_COLOR_BUFFER_BIT) const
Copies to the screen from Area srcArea to dstArea using filter filter. mask allows specification of c...
Definition: DxRenderTarget.cpp:631
bool mNeedsResolve
Definition: DxRenderTarget.h:254
RenderTargetExceptionInvalidSpecification()
Definition: DxRenderTarget.h:276
void resolveTextures() const
Definition: DxRenderTarget.cpp:494
GLsizei coverageSamples
Definition: GLee.h:13032
#define GL_COLOR_BUFFER_BIT
Definition: gldx.h:99
dx::TextureRef getDepthTexture()
Returns a reference to the depth texture of the FBO.
Definition: DxRenderTarget.cpp:468
void updateMipmaps(bool bindFirst, int attachment) const
Definition: DxRenderTarget.cpp:526
const Format & getFormat() const
Returns the Fbo::Format of this FBO.
Definition: DxRenderTarget.h:116
RenderTarget()
Creates a NULL FBO.
Definition: DxRenderTarget.h:94
Definition: DxRenderTarget.h:274
void bindDepthTexture(int textureUnit=0)
Binds the depth texture associated with an Fbo to its target.
Definition: DxRenderTarget.cpp:488
std::vector< dx::TextureRef > mColorTextures
Definition: DxRenderTarget.h:249
static GLint sMaxSamples
Definition: DxRenderTarget.h:259
static void unbindFramebuffer()
Unbinds the Fbo as the currently active framebuffer, restoring the primary context as the target for ...
Definition: DxRenderTarget.cpp:558
GLenum GLsizei GLsizei height
Definition: GLee.h:1029
GLclampf GLclampf GLclampf alpha
Definition: GLee.h:951
std::shared_ptr< Obj > RenderTarget::* unspecified_bool_type
Emulates shared_ptr-like behavior.
Definition: DxRenderTarget.h:265
void blitFromScreen(const Area &srcArea, const Area &dstArea, GLenum filter=GL_NEAREST, GLbitfield mask=GL_COLOR_BUFFER_BIT)
Copies from the screen from Area srcArea to dstArea using filter filter. mask allows specification of...
Definition: DxRenderTarget.cpp:640
dx::TextureRef getTexture(int attachment=0)
Returns the texture target for this FBO. Typically GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB.
Definition: DxRenderTarget.cpp:460
Definition: DxRenderTarget.h:271
Obj()
Definition: DxRenderTarget.cpp:111
void bindTexture(int textureUnit=0, int attachment=0)
Binds the color texture associated with an Fbo to its target. Optionally binds to a multitexturing un...
Definition: DxRenderTarget.cpp:473
ID3D11DepthStencilView * mDepthView
Definition: DxRenderTarget.h:252
bool mNeedsMipmapUpdate
Definition: DxRenderTarget.h:254
GLsizei samples
Definition: GLee.h:5425
int mHeight
Definition: DxRenderTarget.h:239
static GLint sMaxAttachments
Definition: DxRenderTarget.h:260
Definition: DxRenderTarget.h:234
~Obj()
Definition: DxRenderTarget.cpp:124
int int int * dx
Definition: GLee.h:17162
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: GLee.h:5419
std::vector< ID3D11RenderTargetView * > mRenderTargets
Definition: DxRenderTarget.h:246
Format mFormat
Definition: DxRenderTarget.h:240
int GLint
Definition: gldx.h:51
GLenum GLsizei GLenum format
Definition: GLee.h:969
GLuint dst
Definition: GLee.h:10536
int getHeight() const
Returns the height of the FBO in pixels.
Definition: DxRenderTarget.h:108
int getWidth() const
Returns the width of the FBO in pixels.
Definition: DxRenderTarget.h:106
std::shared_ptr< RenderTarget > RenderTargetRef
Definition: DxRenderTarget.h:32
Represents an DirectX RenderTarget object.
Definition: DxRenderTarget.h:89
unsigned int GLbitfield
Definition: gldx.h:48
Vec2i getSize() const
Returns the size of the FBO in pixels.
Definition: DxRenderTarget.h:110
GLenum attachment
Definition: GLee.h:5383
GLint GLint GLsizei GLsizei GLsizei depth
Definition: GLee.h:1161
Area getBounds() const
Returns the bounding area of the FBO in pixels.
Definition: DxRenderTarget.h:112
GLenum GLint GLuint mask
Definition: GLee.h:2241
std::shared_ptr< Obj > mObj
Definition: DxRenderTarget.h:257
unsigned int GLenum
Definition: gldx.h:46
void init()
Definition: DxRenderTarget.cpp:214
void bindFramebuffer()
Binds the Fbo as the currently active framebuffer, meaning it will receive the results of all subsequ...
Definition: DxRenderTarget.cpp:543
Vec2< int > Vec2i
Definition: Vector.h:1313
GLuint color
Definition: GLee.h:3198
bool initMultisample(bool csaa)
Definition: DxRenderTarget.cpp:404