2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
#ifndef LOGO_H
|
|
|
|
#define LOGO_H
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
#include <qopengl.h>
|
2020-06-22 08:12:38 +00:00
|
|
|
#include <QList>
|
2014-08-02 17:42:15 +00:00
|
|
|
#include <QVector3D>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
class Logo
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-08-02 17:42:15 +00:00
|
|
|
Logo();
|
|
|
|
const GLfloat *constData() const { return m_data.constData(); }
|
|
|
|
int count() const { return m_count; }
|
|
|
|
int vertexCount() const { return m_count / 6; }
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
private:
|
2014-08-02 17:42:15 +00:00
|
|
|
void quad(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2, GLfloat x3, GLfloat y3, GLfloat x4, GLfloat y4);
|
|
|
|
void extrude(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
|
|
|
|
void add(const QVector3D &v, const QVector3D &n);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2020-06-22 08:12:38 +00:00
|
|
|
QList<GLfloat> m_data;
|
2019-09-13 18:43:09 +00:00
|
|
|
int m_count = 0;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
#endif // LOGO_H
|