Newer
Older
Import / research / 3d-experiments / Procedural Trees / ProceduralTrees.cpp
@John John on 29 Dec 2020 584 bytes bulk import from macbookpro checkouts
//
//  ProceduralTrees.cpp
//  Procedural Trees
//
//  Created by John Ryland on 1/10/17.
//  Copyright © 2017 John Ryland. All rights reserved.
//

#include "ProceduralTrees.h"
#include <OpenGL/gl.h>


void ProceduralTrees::draw()
{
  glClearColor(0, 0, 0, 0);
  glClear(GL_COLOR_BUFFER_BIT);
  glClear(GL_DEPTH_BUFFER_BIT);
  glColor3f(1.0f, 0.85f, 0.35f);
  glBegin(GL_TRIANGLES);
  {
    glVertex3f(  0.0,  0.6, 0.0);
    glVertex3f( -0.2, -0.3, 0.0);
    glVertex3f(  0.2, -0.3 ,0.0);
  }
  glEnd();
  //glFlush();
}


REGISTER_DEMO_CONTEXT("Procedural Trees", ProceduralTrees)