EgtGraphics 1.5b4 :

- aggiunta gestione dello sfondo anche sfumato
- adattamenti per modifiche a ICMdParser.
This commit is contained in:
Dario Sassi
2014-02-25 16:40:18 +00:00
parent 73ee89f9c5
commit cae2cf6ab0
8 changed files with 145 additions and 33 deletions
+3 -2
View File
@@ -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 ;