Newer
Older
Import / research / 3d-experiments / Sphere / Sphere.h
@John John on 29 Dec 2020 566 bytes bulk import from macbookpro checkouts
//
//  Sphere.h
//  Sphere
//
//  Created by John Ryland on 2/10/17.
//  Copyright © 2017 John Ryland. All rights reserved.
//

#pragma once


#include "../Framework/Framework.h"


struct VertexColorProgram;
struct VertexColorVertex;


class Sphere : public DemoContext
{
public:
  ~Sphere() override;
  void prepare() override;
  void update(float a_seconds) override;
  void draw() override;
  void onResize(const vec2f& a_shape) override;

private:
  ProgramContext2<VertexColorProgram, VertexColorVertex> m_demoModelContext;
  float m_projectionMatrix[16];
};