Need some technical help an object oriented wrapper I am creating for bindbc.sfml

thebluepandabear therealbluepandabear at protonmail.com
Wed Jan 25 01:30:49 UTC 2023


> The example shows calls to `update()` in the setters and in the 
> constructor. The D method for binding this looks like `void 
> sfShape_update(sfShape* shape);`.

Ur a legend bro...

It fixed it...

Calling this in the `Rectangle` constructor:

```D
class RectangleShape : Shape {
     this(Vector2f size) {
         _size = size;
         setSize(_size);

         ptr.sfShape_update();
     }
```

It is my fault on this one.

Thank u sir.


More information about the Digitalmars-d-learn mailing list