Public Attributes | List of all members
dr2d_draw_image_args Struct Reference

#include <dr_2d.h>

Public Attributes

dr2d_color backgroundColor
 The background color. Only used if the DR2D_IMAGE_DRAW_BACKGROUND option is set. More...
 
float dstHeight
 The destination height. More...
 
float dstWidth
 The destination width. More...
 
float dstX
 The destination position on the x axis. This is ignored if the DR2D_IMAGE_ALIGN_CENTER option is set. More...
 
float dstY
 The destination position on the y axis. This is ignored if the DR2D_IMAGE_ALIGN_CENTER option is set. More...
 
dr2d_color foregroundTint
 The foreground tint color. This is not applied to the background color, and the alpha component is ignored. More...
 
unsigned int options
 Flags for controlling how the image should be drawn. More...
 
float srcHeight
 The source height. More...
 
float srcWidth
 The source width. More...
 
float srcX
 The source offset on the x axis. More...
 
float srcY
 The source offset on the y axis. More...
 

Detailed Description

Definition at line 159 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

Member Data Documentation

◆ backgroundColor

dr2d_color dr2d_draw_image_args::backgroundColor

The background color. Only used if the DR2D_IMAGE_DRAW_BACKGROUND option is set.

Definition at line 191 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ dstHeight

float dr2d_draw_image_args::dstHeight

The destination height.

Definition at line 171 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ dstWidth

float dr2d_draw_image_args::dstWidth

The destination width.

Definition at line 168 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ dstX

float dr2d_draw_image_args::dstX

The destination position on the x axis. This is ignored if the DR2D_IMAGE_ALIGN_CENTER option is set.

Definition at line 162 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ dstY

float dr2d_draw_image_args::dstY

The destination position on the y axis. This is ignored if the DR2D_IMAGE_ALIGN_CENTER option is set.

Definition at line 165 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ foregroundTint

dr2d_color dr2d_draw_image_args::foregroundTint

The foreground tint color. This is not applied to the background color, and the alpha component is ignored.

Definition at line 188 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ options

unsigned int dr2d_draw_image_args::options

Flags for controlling how the image should be drawn.

Definition at line 195 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ srcHeight

float dr2d_draw_image_args::srcHeight

The source height.

Definition at line 184 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ srcWidth

float dr2d_draw_image_args::srcWidth

The source width.

Definition at line 181 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ srcX

float dr2d_draw_image_args::srcX

The source offset on the x axis.

Definition at line 175 of file porcupine/demo/c/dr_libs/old/dr_2d.h.

◆ srcY

float dr2d_draw_image_args::srcY

The source offset on the y axis.

Definition at line 178 of file porcupine/demo/c/dr_libs/old/dr_2d.h.


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


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:19