Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs fixes #390

Merged
merged 8 commits into from
May 23, 2023
Merged

Docs fixes #390

merged 8 commits into from
May 23, 2023

Conversation

cryham
Copy link
Contributor

@cryham cryham commented May 22, 2023

I made many fixes in hlms doc.
Funny thing: the more I read the more I find them. Maybe it'd be easier to just paste this all to some spellchecking editor.

I added more custom_* blocks that I found in .any files, they need description, instead of .. placeholder.

One more thing, don't know how to fix it, if you look at website
https://ogrecave.github.io/ogre-next/api/latest/hlms.html
there are few links that don't work (get linked) and odd text is there instead. Search for |outline e.g.: 9.3.Hlms templates|outline "collected", 9.4.1.5., 9.6.1.preparePassHash|outline, see 8.9.1.4.Loading a texture twice etc.

Well I still don't know answers to my questions like here:
https://forums.ogre3d.org/viewtopic.php?p=554575#p554575
https://forums.ogre3d.org/viewtopic.php?p=554600#p554600
I think it would be good to add some (even small) section(s) with such answers or links. I think these are rather common for advanced users.

C++ can use `Hlms::setProperty( "key", value )` to set "key" to the given
value. This value can be read by `\@property`, `@foreach`,
C++ can use `Hlms::setProperty( "key", value )` to set value to the given
"key". This value can be read by `\@property`, `@foreach`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weirdly, both sentences are valid.

  • set "key" to the given value
  • set value to the given "key"

Both mean the same thing. But I think the rest of the docs use the former expression.

| custom_ps_preExecution | Executed before Ogre's code from the Pixel Shader.|
| custom_ps_posMaterialLoad | Executed right after loading material data; and before anything else. May not get executed if there is no relevant material data (i.e. doesn't have normals or QTangents for lighting calculation)|
| custom_ps_posSampleNormal | .. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use [TBD] instead of ...

The thing about some of this customization pieces is that they were added for a particular reason; so it's more a thing of "I need to add a piece of code that happens in this exact spot" rather than explaining what it exactly is supposed to do; look where it is in the code, and override it.

@darksylinc
Copy link
Member

Wow, that makes me feel embarrassed and I hope my English teacher never sees this post <deletes all traces of your PR entirely>

Ok jokes aside. Good job!

there are few links that don't work (get linked) and odd text is there instead. Search for |outline e.g.: 9.3.Hlms templates|outline "collected", 9.4.1.5., 9.6.1.preparePassHash|outline, see 8.9.1.4.Loading a texture twice etc.

It looks like they became broken back from when we switched from the odt manual to Doxygen. I just fixed what you highlighted.

@darksylinc
Copy link
Member

Before accepting the PR I think my only grip is with this change:

C++ can use Hlms::setProperty( "key", value ) to set "key" to the given
value. This value can be read by \@property, @foreach,

vs

C++ can use Hlms::setProperty( "key", value ) to set value to the given
"key". This value can be read by \@property, @foreach,

@cryham
Copy link
Contributor Author

cryham commented May 23, 2023

Ah right, I just realized it's the same meaning. I restored it.

@darksylinc darksylinc merged commit 501500a into OGRECave:master May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants