RobLoach / RobLoach/raylib-cpp
Can't create class from raylib-cpp
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 960
- Forks
- 120
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Pretty all class of raylib-cpp have no constructor allowing that:
class ObjectName
{
public:
ObjectName();
~ObjectName();
void Load(const char* path);
void Draw(raylib::Vector3 pos);
private:
raylib::Model model;
};
So it's impossible to create class like this because a error is thrown saying Model have no default constructor !
Contributor guide
No contributing guide indexed for this repository
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
No source files or tests are named. Start by inspecting the raylib-cpp wrapper classes, especially Model, and compare their constructors with the member-initialization example in the issue. Done means the shown ObjectName pattern can be used without a default-constructor error, with coverage for the relevant wrapper behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100