Skip to content

Commit

Permalink
Update manual's section about anti-aliasing settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flone-dnb committed Nov 30, 2024
1 parent b05e3c4 commit d7cdd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ You can find renderer's config file at:
Note
> You can change values in the specified config files to quicky change settings for testing purposes. Note that changes made in the config files will only be applied locally (only for your computer).
Note that some render settings might not be supported depending on the OS/renderer/hardware, as we shown above some `set` functions would have a special remark in their documentation saying about what function to use to query supported values. Let's consider another example, this one uses anti-aliasing:
Note that some render settings might not be supported depending on the OS/renderer/hardware. Let's consider another example, this one uses anti-aliasing:

```Cpp
void MyGameInstance::foo(){
Expand All @@ -1664,7 +1664,7 @@ void MyGameInstance::foo(){
if (std::holds_alternative<Error>(result)){
// ... handle error ...
}
const auto maxQuality = std::get<AntialiasingQuality>(result);
const auto maxQuality = std::get<std::optional<AntialiasingQuality>>(result); // empty if AA is not supported

// ... display all `AntialiasingQuality` values on the screen but don't exceed `maxQuality` ...

Expand Down

0 comments on commit d7cdd4b

Please sign in to comment.