Table of Contents

Class PaintToOpenGL

Namespace
CADability.Forms
Assembly
CADability.Forms.dll

Implementation of IPaintTo3D via OpenGL

public class PaintToOpenGL : IPaintTo3D, IPaintTo3DFlatText
Inheritance
PaintToOpenGL
Implements
Inherited Members

Constructors

PaintToOpenGL(double)

public PaintToOpenGL(double precision = 1E-06)

Parameters

precision double

Fields

ContextsToDelete

public static List<nint> ContextsToDelete

Field Value

List<nint>

MainThread

public static Thread MainThread

Field Value

Thread

activeRenderContexts

public static List<nint> activeRenderContexts

Field Value

List<nint>

debugNumTriangles

public static int debugNumTriangles

Field Value

int

Properties

UseSharedLists

public bool UseSharedLists { get; }

Property Value

bool

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

~PaintToOpenGL()

protected ~PaintToOpenGL()

GetHashCode()

public override int GetHashCode()

Returns

int

Init(Bitmap)

public void Init(Bitmap image)

Parameters

image Bitmap

Init(nint, int, int, bool)

public void Init(nint deviceContext, int width, int height, bool toBitmap)

Parameters

deviceContext nint
width int
height int
toBitmap bool

PaintToBitmap(GeoObjectList, GeoVector, int, int, BoundingCube?)

public static Bitmap PaintToBitmap(GeoObjectList list, GeoVector viewDirection, int width, int height, BoundingCube? extent = null)

Parameters

list GeoObjectList
viewDirection GeoVector
width int
height int
extent BoundingCube?

Returns

Bitmap

SetClientSize(Size)

public void SetClientSize(Size sz)

Parameters

sz Size