#include <SDL_gpu.h>
Public Attributes | |
struct GPU_Renderer * | renderer |
GPU_Image * | image |
void * | data |
Uint16 | w |
Uint16 | h |
Uint8 | use_clip_rect |
GPU_Rect | clip_rect |
Uint8 | use_color |
SDL_Color | color |
GPU_Rect | viewport |
GPU_Camera | camera |
GPU_Context * | context |
int | refcount |
Uint8 | is_alias |
Render target object for use as a blitting destination. A GPU_Target can be created from a GPU_Image with GPU_LoadTarget(). A GPU_Target can also represent a separate window with GPU_CreateTargetFromWindow(). In that case, 'context' is allocated and filled in. Note: You must have passed the SDL_WINDOW_OPENGL flag to SDL_CreateWindow() for OpenGL renderers to work with new windows. Free the memory with GPU_FreeTarget() when you're done.
GPU_Camera GPU_Target::camera |
Perspective and object viewing transforms.
Definition at line 300 of file SDL_gpu.h.
Referenced by applyTargetCamera(), CreateTargetFromWindow(), GPU_GetCamera(), LoadTarget(), prepareToRenderToTarget(), and SetCamera().
GPU_Rect GPU_Target::clip_rect |
Definition at line 293 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), LoadTarget(), SetClip(), and setClipRect().
SDL_Color GPU_Target::color |
Definition at line 295 of file SDL_gpu.h.
Referenced by Blit(), BlitTransformX(), GPU_SetTargetColor(), GPU_SetTargetRGB(), GPU_SetTargetRGBA(), and prepareToRenderImage().
GPU_Context* GPU_Target::context |
Renderer context data. NULL if the target does not represent a window or rendering context.
Definition at line 303 of file SDL_gpu.h.
Referenced by ActivateShaderProgram(), applyTargetCamera(), applyTexturing(), bindFramebuffer(), bindTexture(), Blit(), BlitBatch(), BlitTransformX(), changeBlending(), changeBlendMode(), changeColor(), changeTexturing(), changeViewport(), CreateTargetFromWindow(), disableTexturing(), enableTexturing(), Flip(), flushAndBindFramebuffer(), flushAndBindTexture(), flushAndClearBlitBufferIfCurrentFramebuffer(), flushAndClearBlitBufferIfCurrentTexture(), FlushBlitBuffer(), flushBlitBufferIfCurrentTexture(), FreeTarget(), get_proper_program_id(), GetLineThickness(), GPU_AddWindowMapping(), GPU_GetCurrentMatrix(), GPU_GetCurrentShaderProgram(), GPU_GetModelView(), GPU_GetProjection(), GPU_GetVirtualCoords(), GPU_MatrixMode(), GPU_PopMatrix(), GPU_PushMatrix(), GPU_RemoveWindowMapping(), GPU_RemoveWindowMappingByTarget(), GPU_SetShapeBlendEquation(), GPU_SetShapeBlendFunction(), GPU_SetShapeBlending(), Init(), isCurrentTarget(), IsDefaultShaderProgram(), LoadTarget(), makeContextCurrent(), MakeCurrent(), prepareToRenderImage(), prepareToRenderShapes(), readImagePixels(), SetAsCurrent(), SetAttributef(), SetAttributefv(), SetAttributei(), SetAttributeiv(), SetAttributeSource(), SetAttributeui(), SetAttributeuiv(), setClipRect(), SetLineThickness(), SetShaderBlock(), SetShaderImage(), SetUniformf(), SetUniformfv(), SetUniformi(), SetUniformiv(), SetUniformMatrixfv(), SetUniformui(), SetUniformuiv(), SetWindowResolution(), ToggleFullscreen(), TriangleBatch(), and UnsetVirtualResolution().
void* GPU_Target::data |
Definition at line 290 of file SDL_gpu.h.
Referenced by bindFramebuffer(), CopySurfaceFromTarget(), CreateAliasTarget(), CreateTargetFromWindow(), FreeTarget(), GetPixel(), getRawTargetData(), and LoadTarget().
Uint16 GPU_Target::h |
Definition at line 291 of file SDL_gpu.h.
Referenced by applyTargetCamera(), CopySurfaceFromTarget(), CreateTargetFromWindow(), GetPixel(), getRawTargetData(), CVideo::gety(), GPU_GetVirtualCoords(), Init(), LoadTarget(), readTargetPixels(), setClipRect(), SetVirtualResolution(), SetWindowResolution(), and UnsetVirtualResolution().
GPU_Image* GPU_Target::image |
Definition at line 289 of file SDL_gpu.h.
Referenced by applyTargetCamera(), changeViewport(), CreateAliasTarget(), CreateTargetFromWindow(), FreeTarget(), getRawTargetData(), GPU_GetVirtualCoords(), LoadTarget(), MakeCurrent(), and UnsetVirtualResolution().
Uint8 GPU_Target::is_alias |
Definition at line 305 of file SDL_gpu.h.
Referenced by CreateAliasTarget(), CreateTargetFromWindow(), and FreeTarget().
int GPU_Target::refcount |
Definition at line 304 of file SDL_gpu.h.
Referenced by CopyImage(), CreateAliasTarget(), CreateTargetFromWindow(), FreeTarget(), and LoadTarget().
struct GPU_Renderer* GPU_Target::renderer |
Definition at line 288 of file SDL_gpu.h.
Referenced by Blit(), BlitBatch(), BlitTransformMatrix(), BlitTransformX(), Clear(), ClearRGBA(), CreateTargetFromWindow(), GetPixel(), LoadTarget(), and TriangleBatch().
Uint8 GPU_Target::use_clip_rect |
Definition at line 292 of file SDL_gpu.h.
Referenced by CreateTargetFromWindow(), LoadTarget(), SetClip(), setClipRect(), UnsetClip(), and unsetClipRect().
Uint8 GPU_Target::use_color |
Definition at line 294 of file SDL_gpu.h.
Referenced by Blit(), BlitTransformX(), CreateTargetFromWindow(), GPU_SetTargetColor(), GPU_SetTargetRGB(), GPU_SetTargetRGBA(), LoadTarget(), and prepareToRenderImage().
GPU_Rect GPU_Target::viewport |
Definition at line 297 of file SDL_gpu.h.
Referenced by changeViewport(), CreateTargetFromWindow(), GPU_SetViewport(), LoadTarget(), and SetWindowResolution().
Uint16 GPU_Target::w |
Definition at line 291 of file SDL_gpu.h.
Referenced by applyTargetCamera(), CopySurfaceFromTarget(), CreateTargetFromWindow(), GetPixel(), getRawTargetData(), CVideo::getx(), GPU_GetVirtualCoords(), Init(), LoadTarget(), readTargetPixels(), setClipRect(), SetVirtualResolution(), SetWindowResolution(), and UnsetVirtualResolution().