#NEWLINE# def init( self ) : #NEWLINE# #INDENT# for i in self . colour : #NEWLINE# #INDENT# i [ 0 ] . init ( self . width , self . height ) #NEWLINE# #UNINDENT# if ( self . depth is not None ) : #NEWLINE# #INDENT# self . depth [ 0 ] . init ( self . width , i . height ) #NEWLINE# #UNINDENT# if ( self . stencil is not None ) : #NEWLINE# #INDENT# self . stencil [ 0 ] . init ( self . width , self . height ) #NEWLINE# #UNINDENT# fbo = c_uint ( 0 ) #NEWLINE# glGenFramebuffersEXT ( 1 , byref ( fbo ) ) #NEWLINE# self . frame_buffer = fbo . value #NEWLINE# if ( self . frame_buffer == 0 ) : #NEWLINE# #INDENT# raise Failed ( ( 'failed to init. glGetError(): ' + str ( glGetError ( ) ) ) )