|
| 1 | +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. |
| 2 | +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. |
| 3 | +// All rights not expressly granted are reserved. |
| 4 | +// |
| 5 | +// This software is distributed under the terms of the GNU General Public |
| 6 | +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". |
| 7 | +// |
| 8 | +// In applying this license CERN does not waive the privileges and immunities |
| 9 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 10 | +// or submit itself to any jurisdiction. |
| 11 | + |
| 12 | +/// \file GPUDisplayBackendNone.h |
| 13 | +/// \author David Rohr |
| 14 | + |
| 15 | +#ifndef GPUDISPLAYBACKENDNONE_H |
| 16 | +#define GPUDISPLAYBACKENDNONE_H |
| 17 | + |
| 18 | +#include "GPUDisplayBackend.h" |
| 19 | + |
| 20 | +namespace o2::gpu |
| 21 | +{ |
| 22 | +class GPUDisplayBackendNone : public GPUDisplayBackend |
| 23 | +{ |
| 24 | + public: |
| 25 | + GPUDisplayBackendNone(); |
| 26 | + ~GPUDisplayBackendNone() override = default; |
| 27 | + |
| 28 | + protected: |
| 29 | + uint32_t DepthBits() override { return 32; }; |
| 30 | + uint32_t drawVertices(const vboList& v, const drawType t) override { return 0; } |
| 31 | + void ActivateColor(std::array<float, 4>& color) override {} |
| 32 | + void setDepthBuffer() override {} |
| 33 | + int32_t InitBackendA() override; |
| 34 | + void ExitBackendA() override {} |
| 35 | + void loadDataToGPU(size_t totalVertizes) override {} |
| 36 | + void prepareDraw(const hmm_mat4& proj, const hmm_mat4& view, bool requestScreenshot, bool toMixBuffer, float includeMixImage) override {} |
| 37 | + void finishDraw(bool doScreenshot, bool toMixBuffer, float includeMixImage) override {} |
| 38 | + void finishFrame(bool doScreenshot, bool toMixBuffer, float includeMixImage) override {} |
| 39 | + void prepareText() override {} |
| 40 | + void finishText() override {} |
| 41 | + void pointSizeFactor(float factor) override {} |
| 42 | + void lineWidthFactor(float factor) override {} |
| 43 | + void OpenGLPrint(const char* s, float x, float y, float* color, float scale) override {} |
| 44 | + void addFontSymbol(int32_t symbol, int32_t sizex, int32_t sizey, int32_t offsetx, int32_t offsety, int32_t advance, void* data) override {} |
| 45 | + void initializeTextDrawing() override {} |
| 46 | +}; |
| 47 | +} // namespace o2::gpu |
| 48 | + |
| 49 | +#endif |
0 commit comments