Top Description Methods
org.lwjgl.util.generator

public @Interface Alternate

extends Annotation
Annotations
@Target:METHOD
Imports
java.lang.annotation.ElementType, .Target

When a method is annonated with @Alternate, no native stub will be created and the Java method will be renamed to value(). This can be useful when we want to provide an alternate GL call with different arguments (created by different annotations)
Author
spasi

Method Summary

Modifier and TypeMethod and Description
public boolean
javaAlt()

If true, the alternate method's name will be used for the Java call.

public boolean
nativeAlt()

If true, an alternate Java->native call will be created.

public boolean
skipNative()

Applicable when nativeAlt is true.

public String
value()

This must match an existing GL method name.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

javaAltback to summary
public boolean javaAlt()

If true, the alternate method's name will be used for the Java call.

nativeAltback to summary
public boolean nativeAlt()

If true, an alternate Java->native call will be created. Useful when the alternate implementation uses different types.

skipNativeback to summary
public boolean skipNative()

Applicable when nativeAlt is true. If true, no extra native call will be generated. Useful when there's another nativeAlt already defined.

valueback to summary
public String value()

This must match an existing GL method name.