Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Hardware/Video/Buffers/FrameBuffer/Headers/FrameBuffer.h

Diff revisions: vs.
  @@ -37,7 +37,11 @@
37 37 U32 _numColorChannels;
38 38 bool _clearBuffersOnBind;
39 39 bool _changeViewport;
40 - FramebufferTarget() : _depthOnly(false), _colorOnly(false), _clearBuffersOnBind(true), _changeViewport(true), _numColorChannels(1)
40 + FramebufferTarget() : _depthOnly(false),
41 + _colorOnly(false),
42 + _clearBuffersOnBind(true),
43 + _changeViewport(true),
44 + _numColorChannels(1)
41 45 {
42 46 }
43 47 };
  @@ -56,8 +60,10 @@
56 60 virtual bool Create(U16 width, U16 height) = 0;
57 61
58 62 virtual void Destroy() = 0;
59 - virtual void DrawToLayer(TextureDescriptor::AttachmentType slot, U8 layer, bool includeDepth = true) = 0; ///<Use by multilayered FB's
60 - inline void DrawToFace(TextureDescriptor::AttachmentType slot, U8 nFace, bool includeDepth = true) { ///<Used by cubemap FB's
63 + /// Use by multilayered FB's
64 + virtual void DrawToLayer(TextureDescriptor::AttachmentType slot, U8 layer, bool includeDepth = true) = 0;
65 + /// Used by cubemap FB's
66 + inline void DrawToFace(TextureDescriptor::AttachmentType slot, U8 nFace, bool includeDepth = true) {
61 67 DrawToLayer(slot, nFace, includeDepth);
62 68 }
63 69
  @@ -74,7 +80,10 @@
74 80 ReadData(vec4<U16>(0, 0, _width, _height), imageFormat, dataType, outData);
75 81 }
76 82
77 - virtual void BlitFrom(Framebuffer* inputFB, TextureDescriptor::AttachmentType slot = TextureDescriptor::Color0, bool blitColor = true, bool blitDepth = false) = 0;
83 + virtual void BlitFrom(Framebuffer* inputFB,
84 + TextureDescriptor::AttachmentType slot = TextureDescriptor::Color0,
85 + bool blitColor = true,
86 + bool blitDepth = false) = 0;
78 87 //If true, array texture and/or cubemaps are bound to a single attachment and shader based layered rendering should be used
79 88 virtual void toggleLayeredRendering(const bool state) {_layeredRendering = state;}
80 89 //Enable/Disable color writes