Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [solved] Documentation webpage [not]missing methods.  (Read 984 times)

0 Members and 1 Guest are viewing this topic.

Rafiz

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
[solved] Documentation webpage [not]missing methods.
« on: October 05, 2020, 05:59:10 am »
I thought, I had problem with missing entries in documentation page. For just minimal example :
https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1RenderWindow.php
has no definition, of sf::RenderWindow.draw(sf::VertexArray,sf::Texture*).

It turned out, that  sf::RenderStates can be created from sf::Texture*
    RenderStates(const Texture* theTexture);

And that sf::VertexArray inherits from sf::Drawable class.
    class VertexArray : public Drawable

So check out not only inheritance tree, but also constructors. If class A is possible to be used, and in documentation there is only defined usage of class B check for those cases :
- if A inherits from B
- if B can be constructed from A (you can check it out in SFML/path_to/B.hpp -> find constructors of B)

It's very possible I'm not knowing everything on this topic, but 2nd "check" was what I learned on this problem, so perhaps someone find this useful.

I heavily compressed original post to save on your reading time if you are here from future google search :) Hope it helped.

Orginal (+first few edits) post :
(click to show/hide)
« Last Edit: October 07, 2020, 01:52:15 am by Rafiz »

 

anything