daily update on 20240424 by nitloady youmu

This commit is contained in:
YoumuLiu
2024-04-25 10:37:33 +08:00
parent 32c0a0f99b
commit dd6e8247bf
40 changed files with 568 additions and 119 deletions
@@ -15,6 +15,16 @@ namespace StgSharp.Graphics
set { ContextHandle = value; }
}
internal sealed override void CreateCanvas((int width, int height, int depth) size, (int x_stretch, int y_stretch, int z_stretch) coordStrech, string name)
{
Width = size.width; Height = size.height;
Depth = size.depth;
_coordStretch = coordStrech;
Name = name;
}
/// <summary>
/// Init an OpenGl context if current form has not been binded to any context. and set the context binded to
/// current form as current OpenGL context.