File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,12 @@ bitflags! {
9090 }
9191}
9292
93- ///
93+ /// Various attributes that can be used in creating a context or choosing a pixel format.
9494#[ derive( Copy , Clone , PartialEq , Eq ) ]
9595#[ repr( C , i32 ) ]
9696pub enum IntegerAttribute {
97+ End = 0 ,
98+
9799 DrawToWindow ( IntegerBool ) = ffi:: WGL_DRAW_TO_WINDOW_ARB ,
98100 SupportOpenGL ( IntegerBool ) = ffi:: WGL_SUPPORT_OPENGL_ARB ,
99101 DoubleBuffer ( IntegerBool ) = ffi:: WGL_DOUBLE_BUFFER_ARB ,
@@ -105,11 +107,12 @@ pub enum IntegerAttribute {
105107 StencilBits ( i32 ) = ffi:: WGL_STENCIL_BITS_ARB ,
106108 SampleBuffers ( IntegerBool ) = ffi:: WGL_SAMPLE_BUFFERS_ARB ,
107109 Samples ( i32 ) = ffi:: WGL_SAMPLES_ARB ,
110+
111+ //TODO Split these off into their own enum
108112 ContextMajorVersion ( i32 ) = ffi:: WGL_CONTEXT_MAJOR_VERSION_ARB ,
109113 ContextMinorVersion ( i32 ) = ffi:: WGL_CONTEXT_MINOR_VERSION_ARB ,
110114 ContextProfileMask ( ProfileMask ) = ffi:: WGL_CONTEXT_PROFILE_MASK_ARB ,
111115 ContextFlags ( ContextFlags ) = ffi:: WGL_CONTEXT_FLAGS_ARB ,
112- End ,
113116}
114117
115118fn validate_integer_attributes ( attributes : & [ IntegerAttribute ] ) {
You can’t perform that action at this time.
0 commit comments