void makeCurrent () { EAGLContext.setCurrentContext(context); }
public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) { set(Keys.ColorFormat(), colorFormat.value()); return this; } /*</methods>*/
public EAGLColorFormat getColorFormat() { if (has(Keys.ColorFormat())) { NSString val = (NSString) get(Keys.ColorFormat()); return EAGLColorFormat.valueOf(val); } return null; } public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) {
public boolean isRetainedBacking() { if (has(Keys.RetainedBacking())) { NSNumber val = (NSNumber) get(Keys.RetainedBacking()); return val.booleanValue(); } return false; } public EAGLDrawableProperties setRetainedBacking(boolean retainedBacking) {
public EAGLContext(EAGLRenderingAPI api) { super((SkipInit) null); initObject(init(api)); } public EAGLContext(EAGLRenderingAPI api, EAGLSharegroup sharegroup) { super((SkipInit) null); initObject(init(api, sharegroup)); }
public EAGLDrawableProperties setRetainedBacking(boolean retainedBacking) { set(Keys.RetainedBacking(), NSNumber.valueOf(retainedBacking)); return this; } public EAGLColorFormat getColorFormat() {
public static /*<name>*/EAGLColorFormat/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/EAGLColorFormat/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/EAGLColorFormat/*</name>*/.class.getName()); }
public static int getMinorVersion() { IntPtr major = new IntPtr(); IntPtr minor = new IntPtr(); getVersion(major, minor); return minor.get(); }
@MarshalsPointer public static EAGLColorFormat toObject(Class<EAGLColorFormat> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return EAGLColorFormat.valueOf(o); } @MarshalsPointer
@MarshalsPointer public static EAGLDrawableProperties toObject(Class<EAGLDrawableProperties> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new EAGLDrawableProperties(o); } @MarshalsPointer
public static /*<name>*/EAGLRenderingAPI/*</name>*/ valueOf(long n) { for (/*<name>*/EAGLRenderingAPI/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/EAGLRenderingAPI/*</name>*/.class.getName()); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public EAGLDrawableProperties set(NSString key, NSObject value) {
@MarshalsPointer public static long toNative(List<EAGLDrawableProperties> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (EAGLDrawableProperties i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public EAGLContext(EAGLRenderingAPI api, EAGLSharegroup sharegroup) { super((SkipInit) null); initObject(init(api, sharegroup)); } /*</constructors>*/
void makeCurrent () { EAGLContext.setCurrentContext(context); }
@MarshalsPointer public static long toNative(EAGLColorFormat o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
public static int getMajorVersion() { IntPtr major = new IntPtr(); IntPtr minor = new IntPtr(); getVersion(major, minor); return major.get(); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<EAGLColorFormat> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<EAGLColorFormat> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(EAGLColorFormat.valueOf(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static List<EAGLDrawableProperties> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<EAGLDrawableProperties> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new EAGLDrawableProperties(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<EAGLColorFormat> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (EAGLColorFormat o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }