daily update on 20240424 by nitloady youmu
This commit is contained in:
@@ -28,8 +28,11 @@
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -38,6 +41,9 @@ namespace StgSharp.Graphics
|
||||
{
|
||||
public abstract class RenderStream
|
||||
{
|
||||
protected (int x, int y, int z) _coordStretch;
|
||||
private int refDepth;
|
||||
protected Camera NativeCamera;
|
||||
|
||||
private IntPtr canvasHandle;
|
||||
private IntPtr contextHandle;
|
||||
@@ -59,12 +65,30 @@ namespace StgSharp.Graphics
|
||||
get => contextHandle;
|
||||
internal set => contextHandle = value;
|
||||
}
|
||||
|
||||
public int Depth
|
||||
{
|
||||
get => refDepth;
|
||||
internal set => refDepth = value;
|
||||
}
|
||||
|
||||
public int Height
|
||||
{
|
||||
get => height;
|
||||
internal set => height = value;
|
||||
}
|
||||
|
||||
public vec3d GlobalCoordSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return (
|
||||
Width * 1.0f / _coordStrech.x,
|
||||
Height * 1.0f / _coordStrech.y,
|
||||
refDepth * 1.0f / _coordStrech.z);
|
||||
}
|
||||
}
|
||||
|
||||
public IntPtr Monitor
|
||||
{
|
||||
get => monitor;
|
||||
@@ -89,6 +113,10 @@ namespace StgSharp.Graphics
|
||||
internal set => width = value;
|
||||
}
|
||||
|
||||
internal abstract void CreateCanvas(
|
||||
(int width,int height,int depth) size, (int x_stretch,int y_stretch, int z_stretch) coordStrech, string name
|
||||
);
|
||||
|
||||
protected abstract void Init();
|
||||
protected abstract void Main();
|
||||
protected abstract void Deinit();
|
||||
|
||||
Reference in New Issue
Block a user