The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Attributes | List of all members
GPU_Target Struct Reference

#include <SDL_gpu.h>

Public Attributes

struct GPU_Rendererrenderer
 
GPU_Imageimage
 
voiddata
 
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_Contextcontext
 
int refcount
 
Uint8 is_alias
 

Detailed Description

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.

See also
GPU_LoadTarget()
GPU_CreateTargetFromWindow()
GPU_FreeTarget()

Definition at line 286 of file SDL_gpu.h.

Member Data Documentation

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
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
Uint16 GPU_Target::h
GPU_Image* GPU_Target::image
Uint8 GPU_Target::is_alias

Definition at line 305 of file SDL_gpu.h.

Referenced by CreateAliasTarget(), CreateTargetFromWindow(), and FreeTarget().

int GPU_Target::refcount
struct GPU_Renderer* GPU_Target::renderer
Uint8 GPU_Target::use_clip_rect
Uint8 GPU_Target::use_color
GPU_Rect GPU_Target::viewport
Uint16 GPU_Target::w

The documentation for this struct was generated from the following file: