Skip to content

Commit

Permalink
Superficial changes to modules page (#205)
Browse files Browse the repository at this point in the history
* Give the HTTP blocks syntax highlighting

* Remove space before brackets for consistency

* Reformat table
  • Loading branch information
Frosty-J authored Jul 18, 2024
1 parent e8dc865 commit 0dc2866
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wiki/app/modules-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The Graphics module also provides methods to generate Pixmaps and Textures.

For example, to obtain the OpenGL API 2.0 instance, the following code will be used:
```java
GL20 gl = Gdx.graphics.getGL20 ();
GL20 gl = Gdx.graphics.getGL20();
```
The method will return an instance that can be used to draw onto the screen. In case the hardware configuration does not support OpenGL ES v2.0, null is returned.

Expand All @@ -56,10 +56,10 @@ It always returns the specific implementation of the API (lwjgl, jogl or android

The following API versions are supported:

|*GL Version* | *Method to access* |
|:---------:|:-----------------:|
|2.0 | `Gdx.graphics.getGL20();`|
|3.0 |`Gdx.graphics.getGL30();`|
| *GL Version* | *Method to access* |
|:------------:|:-------------------------:|
| 2.0 | `Gdx.graphics.getGL20();` |
| 3.0 | `Gdx.graphics.getGL30();` |


To learn more about the Graphics module check its documentation [here](/wiki/graphics/graphics).
Expand Down Expand Up @@ -102,7 +102,7 @@ The Networking module includes configurable TCP client and server sockets with s
There are also methods and utilities for making HTTP requests. One such utility is the Request Builder, which uses method chaining to easily create HTTP Requests.

The Request Builder can be used to create HTTP Requests using the following code snippet:
```
```java
HttpRequestBuilder requestBuilder = new HttpRequestBuilder();
HttpRequest httpRequest = requestBuilder.newRequest()
.method(HttpMethods.GET)
Expand All @@ -112,7 +112,7 @@ Gdx.net.sendHttpRequest(httpRequest, httpResponseListener);
```

It can also be used to create HTTP Requests with arguments using the following code snippet:
```
```java
HttpRequestBuilder requestBuilder = new HttpRequestBuilder();
HttpRequest httpRequest = requestBuilder.newRequest()
.method(HttpMethods.GET)
Expand Down

0 comments on commit 0dc2866

Please sign in to comment.