39 lines
893 B
C++
39 lines
893 B
C++
/* -*- tab-width: 4; -*- */
|
|
/* vi: set sw=2 ts=4 expandtab: */
|
|
|
|
/*
|
|
* Copyright 2018-2020 Mark Callow.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file TexturedCube.cpp
|
|
* @brief Draw a textured cube.
|
|
*/
|
|
|
|
#ifndef TEXTURED_CUBE_H
|
|
#define TEXTURED_CUBE_H
|
|
|
|
#include <GLES/gl.h>
|
|
#include <GLES/glext.h>
|
|
|
|
#include "LoadTestSample.h"
|
|
class TexturedCube : public LoadTestSample {
|
|
public:
|
|
TexturedCube(uint32_t width, uint32_t height,
|
|
const char* const szArgs,
|
|
const std::string sBasePath);
|
|
~TexturedCube();
|
|
|
|
virtual void resize(uint32_t width, uint32_t height);
|
|
virtual void run(uint32_t msTicks);
|
|
|
|
//virtual void getOverlayText(GLTextOverlay *textOverlay);
|
|
|
|
static LoadTestSample*
|
|
create(uint32_t width, uint32_t height,
|
|
const char* const szArgs, const std::string sBasePath);
|
|
};
|
|
|
|
#endif /* TEXTURED_CUBE_H */
|