MatPreviewGenerateImage Struct Reference

#include <customgui_matpreview.h>

Detailed Description

Message struct for MATPREVIEW_GENERATE_IMAGE.

Public Attributes

BaseDocumentpDoc
 
BaseBitmappDest
 
BaseThreadpThread
 
Float rTime
 
Bool bEditorPreview
 
Float rWorldSize
 
Bool bLowQuality
 
RENDERRESULT lResult
 
Bool bIsAnimating
 

Member Data Documentation

◆ pDoc

BaseDocument* pDoc

The document. May be nullptr. The caller owns the pointed document.

◆ pDest

BaseBitmap* pDest

An initialized bitmap to render to. The caller owns the pointed bitmap.

◆ pThread

BaseThread* pThread

The rendering thread. May be nullptr. The caller owns the pointed thread.

◆ rTime

Float rTime

The current preview time.

◆ bEditorPreview

Bool bEditorPreview

Never used. Always false.

◆ rWorldSize

Float rWorldSize

Scale the scene (usually the object named MATPREVIEW_NULL_SIZE_NAME) by rWorldSize. Scale it by 1.0 after render is complete.

◆ bLowQuality

Bool bLowQuality

true if you may render in low quality (e.g. during rotating the object).

◆ lResult

RENDERRESULT lResult

Return one of the possible return values from RenderDocument(): RENDERRESULT.

◆ bIsAnimating

Bool bIsAnimating

Indicates whether the user has chosen Animate in the preview.