Move texture objects to openglraw
This commit is contained in:
+16
-13
@@ -13,6 +13,8 @@ import Control.Monad.Primitive
|
||||
|
||||
newtype FBO = FBO {_unFBO :: GLuint}
|
||||
|
||||
newtype TO = TO {_unTO :: GLuint}
|
||||
|
||||
data RenderData = RenderData
|
||||
{ _lightingWallShadShader :: FullShader
|
||||
, _lightingLineShadowShader :: FullShader
|
||||
@@ -33,22 +35,23 @@ data RenderData = RenderData
|
||||
, _shapeEBO :: EBO
|
||||
, _silhouetteEBO :: EBO
|
||||
, _pictureShaders :: MV.MVector (PrimState IO) FullShader
|
||||
, _fbo2 :: (FBO, TextureObject)
|
||||
, _fbo3 :: (FBO, TextureObject)
|
||||
, _fboHalf1 :: (FBO, TextureObject)
|
||||
, _fboHalf2 :: (FBO, TextureObject)
|
||||
, _fboHalf3 :: (FBO, TextureObject)
|
||||
, _fboBase :: (FBO, (TextureObject, TextureObject))
|
||||
, _fboCloud :: (FBO, (TextureObject, TextureObject))
|
||||
, _fboBloom :: (FBO, TextureObject)
|
||||
, _fboColor :: (FBO, TextureObject)
|
||||
, _fboPos :: (FBO, TextureObject)
|
||||
, _fboLighting :: (FBO, TextureObject)
|
||||
, _fboLightingHigh :: (FBO, TextureObject)
|
||||
, _fboShadow :: (FBO, (TextureObject,TextureObject))
|
||||
, _fbo2 :: (FBO, TO)
|
||||
, _fbo3 :: (FBO, TO)
|
||||
, _fboHalf1 :: (FBO, TO)
|
||||
, _fboHalf2 :: (FBO, TO)
|
||||
, _fboHalf3 :: (FBO, TO)
|
||||
, _fboBase :: (FBO, (TO, TO))
|
||||
, _fboCloud :: (FBO, (TO, TO))
|
||||
, _fboBloom :: (FBO, TO)
|
||||
, _fboColor :: (FBO, TO)
|
||||
, _fboPos :: (FBO, TO)
|
||||
, _fboLighting :: (FBO, TO)
|
||||
, _fboLightingHigh :: (FBO, TO)
|
||||
, _fboShadow :: (FBO, (TO,TO))
|
||||
, _rboBaseBloom :: GLuint -- RenderbufferObject id
|
||||
, _matUBO :: GLuint -- BufferObject id
|
||||
}
|
||||
makeLenses ''RenderData
|
||||
makeLenses ''FBO
|
||||
makeLenses ''TO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user