
gnu.x11.extension.glx.GLXPixmap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of escher Show documentation
Show all versions of escher Show documentation
Escher is a collection of libraries for X Window System written purely in Java.
The newest version!
package gnu.x11.extension.glx;
import gnu.x11.RequestOutputStream;
/** GLX pixmap. */
public class GLXPixmap extends gnu.x11.Resource implements GLXDrawable {
public GLX glx;
// glx opcode 5 - create glx pixmap
/**
* @see glXCreateGLXPixmap
*/
public GLXPixmap (GLX glx, int screen_no, VisualConfig visual,
gnu.x11.Pixmap pixmap) {
super (glx.display);
RequestOutputStream o = display.out;
synchronized (o) {
o.begin_request (glx.major_opcode, 5, 5);
o.write_int32 (screen_no);
o.write_int32 (visual.visual_id ());
o.write_int32 (pixmap.id);
o.write_int32 (id);
o.send ();
}
}
// glx opcode 6 - destroy glx pixmap
/**
* @see glXDestroyContext
*/
public void destroy () {
RequestOutputStream o = display.out;
synchronized (o) {
o.begin_request (glx.major_opcode, 6, 2);
o.write_int32 (id);
o.send ();
}
}
public int id () {
return id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy