Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / inc / opengl / FixedTextureAtlas.hxx
blobc4f5d6065696df413e7783c834545bf27dfcc7cb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #ifndef INCLUDED_VCL_INC_OPENGL_FIXED_TEXTURE_ATLAS_H
12 #define INCLUDED_VCL_INC_OPENGL_FIXED_TEXTURE_ATLAS_H
14 #include "opengl/texture.hxx"
17 class VCL_PLUGIN_PUBLIC FixedTextureAtlasManager
19 std::vector<std::unique_ptr<ImplOpenGLTexture>> mpTextures;
21 int mWidthFactor;
22 int mHeightFactor;
23 int mSubTextureSize;
25 void CreateNewTexture();
27 public:
28 FixedTextureAtlasManager(int nWidthFactor, int nHeightFactor, int nTextureSize);
29 OpenGLTexture InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData);
31 int GetSubtextureSize()
33 return mSubTextureSize;
37 #endif // INCLUDED_VCL_INC_OPENGL_FIXED_TEXTURE_ATLAS_H
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */