Can't create class from raylib-cpp

Open
#198 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
game-dev

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.

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 !

Dominant language
C++
Stars
960
Forks
120
Avg merge
10m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RobLoach/raylib-cpp

All issues in RobLoach/raylib-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.