Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Integrate a way from switching to 2D to 3D enabler #30

@SpinnerX

Description

@SpinnerX

Probably have a way to allow users switch from a 2D to 3D

An example would be like some kind of object that is probably represented as a 2D object, but then represented now as a 3D object. Allowing for modification if we want to render 2D/3D objects.

Example of how the API would be called (which will potentially be located in Texture.h and Texture.cpp)

static void createTexture(bool is3DEnabled){
        if(is3DEnabled){
              texture = Create<Texture3D>();
              return;
          }
          else{
                texture = Create<Texture<Texture2D>();
                return;
           }
}

Example of using that said function

Texture* texture = createTexture(false); // Create a 2D texture
Texture texture3D = createTexture(true); // Creating a 3D texture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementSomething needs improvementenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions