Rendering optimisations (mainly inlining)

This commit is contained in:
jgk
2021-07-31 23:38:37 +02:00
parent d7649b951b
commit 54c912224b
7 changed files with 92 additions and 34 deletions
+10
View File
@@ -37,6 +37,8 @@ module Shader.Data
-- TODO make lenses for VBO object
-- , textureObject
) where
--import Geometry.Data
import Graphics.Rendering.OpenGL
import Foreign
import Control.Lens
@@ -139,6 +141,14 @@ data FullShader = FullShader
{- | Datatype containing the reference to a texture object. -}
newtype ShaderTexture = ShaderTexture
{ _textureObject :: TextureObject }
--data PicVerxs = PicVerxs
-- { _pvPoly :: (Point3,Point4)
-- , _pvPolyz :: (Point3,Point4,Float)
-- , _pvBez :: (Point3,Point4,Point4)
-- , _pvText :: (Point3,Point4,Point2)
-- , _pvArc :: (Point3,Point3,Point3)
-- , _pvEll :: (Point3,Point4)
-- }
data EPrimitiveMode
= EPoints