Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/LOSTexture.h
/* Copyright (C) 2014 Wildfire Games. | /* Copyright (C) 2019 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
void DeleteTexture(); | void DeleteTexture(); | ||||
bool CreateShader(); | bool CreateShader(); | ||||
void ConstructTexture(int unit); | void ConstructTexture(int unit); | ||||
void RecomputeTexture(int unit); | void RecomputeTexture(int unit); | ||||
size_t GetBitmapSize(size_t w, size_t h, size_t* pitch); | size_t GetBitmapSize(size_t w, size_t h, size_t* pitch); | ||||
void GenerateBitmap(ICmpRangeManager::CLosQuerier los, u8* losData, size_t w, size_t h, size_t pitch); | void GenerateBitmap(const ICmpRangeManager::CLosQuerier& los, u8* losData, size_t w, size_t h, size_t pitch); | ||||
CSimulation2& m_Simulation; | CSimulation2& m_Simulation; | ||||
bool m_Dirty; | bool m_Dirty; | ||||
bool m_ShaderInitialized; | bool m_ShaderInitialized; | ||||
GLuint m_Texture; | GLuint m_Texture; | ||||
Show All 13 Lines |
Wildfire Games · Phabricator