Skip to content

Create FramebufferCache #17

@Gabbell

Description

@Gabbell

TASK

Description:

We need a FramebufferCache inspired from the other caches already made (look at TextureCache). One major difference is that framebuffers are not loaded from a file. Instead, they are generated during runtime. The cache should store and manage framebuffers. Similar to TextureCache, the GLuint representing the Framebuffer ID will be hashed and store in an unordered_map. One feature is that it should react if the window size is changed because all framebuffers will need to be regenerated based on the new window size.

Motivation:

Some CG features (like shadow mapping) require storage and manipulation of framebuffers. Having easy and clear access to them would be an asset.

Completion Criteria:

  • The FramebufferCache stores framebuffers in a clear and concise manner inspired from other caches
  • All framebuffers are regenerated if a window resize event occurs
  • The Framebuffer ID is hashed and stored into a map

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions