EgtGraphics 1.5b4 :
- aggiunta gestione dello sfondo anche sfumato - adattamenti per modifiche a ICMdParser.
This commit is contained in:
+3
-2
@@ -61,8 +61,8 @@ ObjNewGraphics::AddPolyLine( const PolyLine& PL)
|
||||
glBufferSubData( GL_ARRAY_BUFFER, m_nCount * SIZEV3F, SIZEV3F, &v3V) ;
|
||||
++ m_nCount ;
|
||||
}
|
||||
glVertexAttribPointer( (GLuint)0, 3, GL_FLOAT, GL_FALSE, 0, 0) ;
|
||||
glEnableVertexAttribArray( 0) ;
|
||||
glVertexPointer( 3, GL_FLOAT, 0, ((void*)(0))) ;
|
||||
glEnableClientState( GL_VERTEX_ARRAY) ;
|
||||
glBindVertexArray( 0) ;
|
||||
|
||||
return true ;
|
||||
@@ -82,6 +82,7 @@ ObjNewGraphics::Draw( void)
|
||||
if ( m_nVaoId != 0) {
|
||||
glBindVertexArray( m_nVaoId) ;
|
||||
glDrawArrays( m_nMode, 0, m_nCount) ;
|
||||
glBindVertexArray( 0) ;
|
||||
}
|
||||
|
||||
return true ;
|
||||
|
||||
Reference in New Issue
Block a user