Struct x11_dl::glx::Glx [] [src]

pub struct Glx {
    pub glXChooseFBConfig: unsafe extern fn(*mut Display, c_int, *const c_int, *mut c_int) -> *mut GLXFBConfig,
    pub glXChooseVisual: unsafe extern fn(*mut Display, c_int, *mut c_int) -> *mut XVisualInfo,
    pub glXCopyContext: unsafe extern fn(*mut Display, GLXContext, GLXContext, c_ulong),
    pub glXCreateContext: unsafe extern fn(*mut Display, *mut XVisualInfo, GLXContext, c_int) -> GLXContext,
    pub glXCreateGLXPixmap: unsafe extern fn(*mut Display, *mut XVisualInfo, c_ulong) -> c_ulong,
    pub glXCreateNewContext: unsafe extern fn(*mut Display, GLXFBConfig, c_int, GLXContext, c_int) -> GLXContext,
    pub glXCreatePbuffer: unsafe extern fn(*mut Display, GLXFBConfig, *const c_int) -> c_ulong,
    pub glXCreatePixmap: unsafe extern fn(*mut Display, GLXFBConfig, c_ulong, *const c_int) -> c_ulong,
    pub glXCreateWindow: unsafe extern fn(*mut Display, GLXFBConfig, c_ulong, *const c_int) -> c_ulong,
    pub glXDestroyContext: unsafe extern fn(*mut Display, GLXContext),
    pub glXDestroyGLXPixmap: unsafe extern fn(*mut Display, c_ulong),
    pub glXDestroyPbuffer: unsafe extern fn(*mut Display, c_ulong),
    pub glXDestroyPixmap: unsafe extern fn(*mut Display, c_ulong),
    pub glXDestroyWindow: unsafe extern fn(*mut Display, c_ulong),
    pub glXGetClientString: unsafe extern fn(*mut Display, c_int) -> *const c_char,
    pub glXGetConfig: unsafe extern fn(*mut Display, *mut XVisualInfo, c_int, *mut c_int) -> c_int,
    pub glXGetCurrentContext: unsafe extern fn() -> GLXContext,
    pub glXGetCurrentDisplay: unsafe extern fn() -> *mut Display,
    pub glXGetCurrentDrawable: unsafe extern fn() -> c_ulong,
    pub glXGetCurrentReadDrawable: unsafe extern fn() -> c_ulong,
    pub glXGetFBConfigAttrib: unsafe extern fn(*mut Display, GLXFBConfig, c_int, *mut c_int) -> c_int,
    pub glXGetFBConfigs: unsafe extern fn(*mut Display, c_int, *mut c_int) -> *mut GLXFBConfig,
    pub glXGetProcAddress: unsafe extern fn(*const c_uchar) -> Option<unsafe extern fn()>,
    pub glXGetSelectedEvent: unsafe extern fn(*mut Display, c_ulong, *mut c_ulong),
    pub glXGetVisualFromFBConfig: unsafe extern fn(*mut Display, GLXFBConfig) -> *mut XVisualInfo,
    pub glXIsDirect: unsafe extern fn(*mut Display, GLXContext) -> c_int,
    pub glXMakeContextCurrent: unsafe extern fn(*mut Display, c_ulong, c_ulong, GLXContext) -> c_int,
    pub glXMakeCurrent: unsafe extern fn(*mut Display, c_ulong, GLXContext) -> c_int,
    pub glXQueryContext: unsafe extern fn(*mut Display, GLXContext, c_int, *mut c_int) -> c_int,
    pub glXQueryDrawable: unsafe extern fn(*mut Display, c_ulong, c_int, *mut c_uint),
    pub glXQueryExtension: unsafe extern fn(*mut Display, *mut c_int, *mut c_int) -> c_int,
    pub glXQueryExtensionsString: unsafe extern fn(*mut Display, c_int) -> *const c_char,
    pub glXQueryServerString: unsafe extern fn(*mut Display, c_int, c_int) -> *const c_char,
    pub glXQueryVersion: unsafe extern fn(*mut Display, *mut c_int, *mut c_int) -> c_int,
    pub glXSelectEvent: unsafe extern fn(*mut Display, c_ulong, c_ulong),
    pub glXSwapBuffers: unsafe extern fn(*mut Display, c_ulong),
    pub glXUseXFont: unsafe extern fn(c_ulong, c_int, c_int, c_int),
    pub glXWaitGL: unsafe extern fn(),
    pub glXWaitX: unsafe extern fn(),
    // some fields omitted
}

Fields

glXChooseFBConfig: unsafe extern fn(*mut Display, c_int, *const c_int, *mut c_int) -> *mut GLXFBConfig glXChooseVisual: unsafe extern fn(*mut Display, c_int, *mut c_int) -> *mut XVisualInfo glXCopyContext: unsafe extern fn(*mut Display, GLXContext, GLXContext, c_ulong) glXCreateContext: unsafe extern fn(*mut Display, *mut XVisualInfo, GLXContext, c_int) -> GLXContext glXCreateGLXPixmap: unsafe extern fn(*mut Display, *mut XVisualInfo, c_ulong) -> c_ulong glXCreateNewContext: unsafe extern fn(*mut Display, GLXFBConfig, c_int, GLXContext, c_int) -> GLXContext glXCreatePbuffer: unsafe extern fn(*mut Display, GLXFBConfig, *const c_int) -> c_ulong glXCreatePixmap: unsafe extern fn(*mut Display, GLXFBConfig, c_ulong, *const c_int) -> c_ulong glXCreateWindow: unsafe extern fn(*mut Display, GLXFBConfig, c_ulong, *const c_int) -> c_ulong glXDestroyContext: unsafe extern fn(*mut Display, GLXContext) glXDestroyGLXPixmap: unsafe extern fn(*mut Display, c_ulong) glXDestroyPbuffer: unsafe extern fn(*mut Display, c_ulong) glXDestroyPixmap: unsafe extern fn(*mut Display, c_ulong) glXDestroyWindow: unsafe extern fn(*mut Display, c_ulong) glXGetClientString: unsafe extern fn(*mut Display, c_int) -> *const c_char glXGetConfig: unsafe extern fn(*mut Display, *mut XVisualInfo, c_int, *mut c_int) -> c_int glXGetCurrentContext: unsafe extern fn() -> GLXContext glXGetCurrentDisplay: unsafe extern fn() -> *mut Display glXGetCurrentDrawable: unsafe extern fn() -> c_ulong glXGetCurrentReadDrawable: unsafe extern fn() -> c_ulong glXGetFBConfigAttrib: unsafe extern fn(*mut Display, GLXFBConfig, c_int, *mut c_int) -> c_int glXGetFBConfigs: unsafe extern fn(*mut Display, c_int, *mut c_int) -> *mut GLXFBConfig glXGetProcAddress: unsafe extern fn(*const c_uchar) -> Option<unsafe extern fn()> glXGetSelectedEvent: unsafe extern fn(*mut Display, c_ulong, *mut c_ulong) glXGetVisualFromFBConfig: unsafe extern fn(*mut Display, GLXFBConfig) -> *mut XVisualInfo glXIsDirect: unsafe extern fn(*mut Display, GLXContext) -> c_int glXMakeContextCurrent: unsafe extern fn(*mut Display, c_ulong, c_ulong, GLXContext) -> c_int glXMakeCurrent: unsafe extern fn(*mut Display, c_ulong, GLXContext) -> c_int glXQueryContext: unsafe extern fn(*mut Display, GLXContext, c_int, *mut c_int) -> c_int glXQueryDrawable: unsafe extern fn(*mut Display, c_ulong, c_int, *mut c_uint) glXQueryExtension: unsafe extern fn(*mut Display, *mut c_int, *mut c_int) -> c_int glXQueryExtensionsString: unsafe extern fn(*mut Display, c_int) -> *const c_char glXQueryServerString: unsafe extern fn(*mut Display, c_int, c_int) -> *const c_char glXQueryVersion: unsafe extern fn(*mut Display, *mut c_int, *mut c_int) -> c_int glXSelectEvent: unsafe extern fn(*mut Display, c_ulong, c_ulong) glXSwapBuffers: unsafe extern fn(*mut Display, c_ulong) glXUseXFont: unsafe extern fn(c_ulong, c_int, c_int, c_int) glXWaitGL: unsafe extern fn() glXWaitX: unsafe extern fn()

Methods

impl Glx
[src]

fn open() -> Result<GlxOpenError>

Trait Implementations

impl Send for Glx
[src]

impl Sync for Glx
[src]