openframeworks / openframeworks/openFrameworks
Missing support for non 2D texture types in ofTexture
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Unless i'm mistaken, I can't find any support for non-2D texture types.
missing:
GL_TEXTURE_2D_ARRAY,
GL_TEXTURE_3D,
GL_TEXTURE_1D,
GL_TEXTURE_1D_ARRAY,
GL_TEXTURE_CUBE_MAP,
GL_TEXTURE_CUBE_MAP_ARRAY,
It would make most sense to separate out the common functionality into an ofTextureBase base class and derive into something like ofTexture1D, ofTexture2D, ofTexture3D and ofTextureCubeMap. For backwards compatibility alias ofTexture2D to ofTexture.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating ofTexture and reviewing how its current 2D texture functionality is organized. Compare the existing API with the listed 1D, 2D array, 3D, cube-map, and cube-map array types. Done means the requested texture types are supported, common functionality is shared appropriately, and ofTexture remains compatible as an alias for the 2D type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100