SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Fields
SUOverlayDrawFrameInfo Struct Reference

Data that SketchUp will use the to blend the given color/depth buffer onto SketchUp rendering. More...

#include <SketchUpAPI/application/overlay.h>

Data Fields

enum SUOverlayDrawFrameInfoVersion version
 Version of the struct. This will be set by SketchUp.
 
double blending_factor
 
struct SUDrawFrameMemoryBuffer color
 
struct SUDrawFrameMemoryBuffer depth
 
void * reserved
 Reserved for internal use. This will be set to NULL by SketchUp and should not be modified.
 

Detailed Description

Data that SketchUp will use the to blend the given color/depth buffer onto SketchUp rendering.

Attention
color and depth buffers must be valid until the end_frame callback is called.

Field Documentation

double SUOverlayDrawFrameInfo::blending_factor

Alpha channel of the given color buffer will be multiplied with this value. Must be set to 1.0 if an override is not needed.

struct SUDrawFrameMemoryBuffer SUOverlayDrawFrameInfo::color

Color buffer info. ptr points to a uint8_t buffer with 4 channels. The buffer pointed to by color must be valid until the end_frame callback is called.

struct SUDrawFrameMemoryBuffer SUOverlayDrawFrameInfo::depth

Depth buffer info. ptr points to a float buffer. The buffer pointed to by color must be valid until the end_frame callback is called.


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