Skip to content

Commit

Permalink
fix(ovr): add OVR_MAX_EXTENSION_NAME_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Jan 5, 2020
1 parent 2f2e5ab commit 209dcd9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/OVR.java
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ public class OVR {
OVR_MAX_EXTERNAL_CAMERA_COUNT = 16,
OVR_EXTERNAL_CAMERA_NAME_SIZE = 32;

/** Defines the largest size for an extension name string, including the '\0' terminator. */
public static final int OVR_MAX_EXTENSION_NAME_SIZE = 128;

/** Specifies the maximum number of layers supported by {@link #ovr_SubmitFrame SubmitFrame}. */
public static final int ovrMaxLayerCount = 16;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import static org.lwjgl.system.MemoryUtil.*;

import static org.lwjgl.ovr.OVR.OVR_MAX_EXTENSION_NAME_SIZE;

/**
* Describes the properties of an API extension.
*
Expand Down
1 change: 1 addition & 0 deletions modules/lwjgl/ovr/src/templates/kotlin/ovr/OVRTypes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ val ovrFovPort = struct(Module.OVR, "OVRFovPort", nativeName = "ovrFovPort") {
val ovrTrackingOrigin = "ovrTrackingOrigin".enumType

val ovrExtensionProperties = struct(Module.OVR, "OVRExtensionProperties", nativeName = "ovrExtensionProperties", mutable = false) {
javaImport("static org.lwjgl.ovr.OVR.OVR_MAX_EXTENSION_NAME_SIZE")
documentation = "Describes the properties of an API extension."

int("extensionId", "One of enum {@code ovrExtensions} or a dynamic value.")
Expand Down
6 changes: 6 additions & 0 deletions modules/lwjgl/ovr/src/templates/kotlin/ovr/templates/OVR.kt
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,12 @@ ENABLE_WARNINGS()""")
"OVR_EXTERNAL_CAMERA_NAME_SIZE".."32"
).noPrefix()

IntConstant(
"Defines the largest size for an extension name string, including the '\\0' terminator.",

"OVR_MAX_EXTENSION_NAME_SIZE".."128"
).noPrefix()

ovrResult(
"Initialize",
"""
Expand Down

0 comments on commit 209dcd9

Please sign in to comment.