Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 908 vs 909 for /trunk/Source Code/Platform/Video/Buffers/RenderTarget/Headers/RTAttachmentPool.h

Diff revisions: vs.
  @@ -47,9 +47,12 @@
47 47
48 48 void copy(const RTAttachmentPool& other);
49 49
50 - void add(RTAttachment::Type type,
51 - U8 index,
52 - const TextureDescriptor& descriptor);
50 + RTAttachment_ptr& update(RTAttachment::Type type,
51 + U8 index,
52 + const TextureDescriptor& descriptor);
53 +
54 + // Return true if the attachment was used. False if the call had no effect
55 + bool clear(RTAttachment::Type type, U8 index);
53 56
54 57 RTAttachment_ptr& get(RTAttachment::Type type, U8 index);
55 58 const RTAttachment_ptr& get(RTAttachment::Type type, U8 index) const;
  @@ -58,8 +61,6 @@
58 61
59 62 U8 attachmentCount(RTAttachment::Type type) const;
60 63
61 - void onClear();
62 -
63 64 private:
64 65 RTAttachment_ptr& getInternal(AttachmentPool& pool, RTAttachment::Type type, U8 index);
65 66 const RTAttachment_ptr& getInternal(const AttachmentPool& pool, RTAttachment::Type type, U8 index) const;