Nitlanguage.org
  • Nitdoc
  • egl
  • egl
  • EGLConfigAttribs
  • defaultinit

init defaultinit(display: EGLDisplay, config: EGLConfig)

egl :: EGLConfigAttribs :: defaultinit

  • Doc
  • Linearization

Summary

  • Property definitions

  • egl$EGLConfigAttribs$defaultinit

Property definitions

egl $ EGLConfigAttribs :: defaultinit
# Attributes of a config for a given EGL display
class EGLConfigAttribs
	var display: EGLDisplay
	var config: EGLConfig

	fun buffer_size: Int do return display.config_attrib(config, 0x3020)
	fun alpha_size: Int do return display.config_attrib(config, 0x3021)
	fun blue_size: Int do return display.config_attrib(config, 0x3022)
	fun green_size: Int do return display.config_attrib(config, 0x3023)
	fun red_size: Int do return display.config_attrib(config, 0x3024)
	fun depth_size: Int do return display.config_attrib(config, 0x3025)
	fun stencil_size: Int do return display.config_attrib(config, 0x3026)
	fun samples: Int do return display.config_attrib(config, 0x3031)
	fun sample_buffers: Int do return display.config_attrib(config, 0x3032)

	fun native_visual_id: Int do return display.config_attrib(config, 0x302E)
	fun native_visual_type: Int do return display.config_attrib(config, 0x302F)

	fun caveat: EGLConfigCaveat do
		return new EGLConfigCaveat.from_i(display.config_attrib(config, 0x3027))
	end

	fun conformant: EGLConformant do
		return new EGLConformant.from_i(display.config_attrib(config, 0x3042))
	end
end
lib/egl/egl.nit:207,1--232,3
Nit standard library. Version .