Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * The MIT License (MIT)
  * Copyright (c) 2014 Christian Gärtner
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
package org.achtern.AchternEngine.core.bootstrap;

A NativeObject is used by the Graphics Engine (e.g. OpenGL) and lives therefor most of the times on the graphics card. It has an ID associated with it and maybe buffers. This is just the interface version!
public interface Native {
    public static final int INVALID_ID = -1;

Returns the corresponding ID, -1 indicates, no ID has been set

    public int getID();

internal use only
    public void setID(int id);
New to GrepCode? Check out our FAQ X