testStelVertexBuffer.hpp   testStelVertexArray.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) Stellarium Team * Copyright (C) 2009 Fabien Chereau
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _TESTSTELVERTEXBUFFER_HPP_ #ifndef _TESTSTELVERTEXARRAY_HPP_
#define _TESTSTELVERTEXBUFFER_HPP_ #define _TESTSTELVERTEXARRAY_HPP_
#include <QObject> #include <QObject>
#include <QtTest> #include <QTest>
#include "renderer/StelVertexBuffer.hpp" #include "StelVertexArray.hpp"
#include "renderer/StelQGL2ArrayVertexBufferBackend.hpp"
//! Unittests for StelVertexBuffer implementations. class TestStelVertexArray : public QObject
class TestStelVertexBuffer : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private slots:
void initTestCase(); void initTestCase();
void benchmarkForeachTriangleNoOp();
void testStelQGL2ArrayVertexBuffer(); void benchmarkForeachTriangle();
void benchmarkForeachTriangleDirect();
private: private:
//! Test specified StelVertexBuffer backend with specified vertex ty StelVertexArray array;
pe.
//!
//! @tparam BufferBackend Vertex buffer backend.
//! @tparam Vertex Vertex type stored in the buffer.
template<class BufferBackend, class Vertex>
void testVertexBuffer();
}; };
#endif // _TESTSTELVERTEXBUFFER_HPP_ #endif // _TESTSTELVERTEXARRAY_HPP_
 End of changes. 8 change blocks. 
18 lines changed or deleted 10 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/