mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-11 09:04:24 +02:00
quint64 -> uint64_t
This commit is contained in:
parent
4fd2c4449d
commit
de5643b5b9
4 changed files with 11 additions and 11 deletions
|
@ -225,7 +225,7 @@ void Procedural::prepare(gpu::Batch& batch,
|
|||
const glm::vec3& position,
|
||||
const glm::vec3& size,
|
||||
const glm::quat& orientation,
|
||||
const quint64& created,
|
||||
const uint64_t& created,
|
||||
const ProceduralProgramKey key) {
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
_entityDimensions = size;
|
||||
|
@ -233,7 +233,7 @@ void Procedural::prepare(gpu::Batch& batch,
|
|||
_entityOrientation = glm::mat3_cast(orientation);
|
||||
_entityCreated = created;
|
||||
if (!_shaderPath.isEmpty()) {
|
||||
auto lastModified = (quint64)QFileInfo(_shaderPath).lastModified().toMSecsSinceEpoch();
|
||||
auto lastModified = (uint64_t)QFileInfo(_shaderPath).lastModified().toMSecsSinceEpoch();
|
||||
if (lastModified > _shaderModified) {
|
||||
QFile file(_shaderPath);
|
||||
file.open(QIODevice::ReadOnly);
|
||||
|
|
|
@ -83,10 +83,10 @@ public:
|
|||
bool isReady() const;
|
||||
bool isEnabled() const { return _enabled; }
|
||||
void prepare(gpu::Batch& batch, const glm::vec3& position, const glm::vec3& size, const glm::quat& orientation,
|
||||
const quint64& created, const ProceduralProgramKey key = ProceduralProgramKey());
|
||||
const uint64_t& created, const ProceduralProgramKey key = ProceduralProgramKey());
|
||||
|
||||
glm::vec4 getColor(const glm::vec4& entityColor) const;
|
||||
quint64 getFadeStartTime() const { return _fadeStartTime; }
|
||||
uint64_t getFadeStartTime() const { return _fadeStartTime; }
|
||||
bool isFading() const { return _doesFade && _isFading; }
|
||||
void setIsFading(bool isFading) { _isFading = isFading; }
|
||||
void setDoesFade(bool doesFade) { _doesFade = doesFade; }
|
||||
|
@ -136,7 +136,7 @@ protected:
|
|||
// Rendering object descriptions, from userData
|
||||
QString _shaderSource;
|
||||
QString _shaderPath;
|
||||
quint64 _shaderModified { 0 };
|
||||
uint64_t _shaderModified { 0 };
|
||||
NetworkShaderPointer _networkShader;
|
||||
bool _shaderDirty { true };
|
||||
bool _uniformsDirty { true };
|
||||
|
@ -156,12 +156,12 @@ protected:
|
|||
glm::vec3 _entityDimensions;
|
||||
glm::vec3 _entityPosition;
|
||||
glm::mat3 _entityOrientation;
|
||||
quint64 _entityCreated;
|
||||
uint64_t _entityCreated;
|
||||
|
||||
private:
|
||||
void setupUniforms();
|
||||
|
||||
mutable quint64 _fadeStartTime { 0 };
|
||||
mutable uint64_t _fadeStartTime { 0 };
|
||||
mutable bool _hasStartedFade { false };
|
||||
mutable bool _isFading { false };
|
||||
bool _doesFade { true };
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <ViewFrustum.h>
|
||||
#include <shaders/Shaders.h>
|
||||
|
||||
ProceduralSkybox::ProceduralSkybox(quint64 created) : graphics::Skybox(), _created(created) {
|
||||
ProceduralSkybox::ProceduralSkybox(uint64_t created) : graphics::Skybox(), _created(created) {
|
||||
_procedural._vertexSource = gpu::Shader::createVertex(shader::graphics::vertex::skybox)->getSource();
|
||||
_procedural._opaqueFragmentSource = shader::Source::get(shader::procedural::fragment::proceduralSkybox);
|
||||
// Adjust the pipeline state for background using the stencil test
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
class ProceduralSkybox: public graphics::Skybox {
|
||||
public:
|
||||
ProceduralSkybox(quint64 created = 0);
|
||||
ProceduralSkybox(uint64_t created = 0);
|
||||
|
||||
void parse(const QString& userData) { _procedural.setProceduralData(ProceduralData::parse(userData)); }
|
||||
|
||||
|
@ -29,11 +29,11 @@ public:
|
|||
void render(gpu::Batch& batch, const ViewFrustum& frustum) const override;
|
||||
static void render(gpu::Batch& batch, const ViewFrustum& frustum, const ProceduralSkybox& skybox);
|
||||
|
||||
quint64 getCreated() const { return _created; }
|
||||
uint64_t getCreated() const { return _created; }
|
||||
|
||||
protected:
|
||||
mutable Procedural _procedural;
|
||||
quint64 _created;
|
||||
uint64_t _created;
|
||||
};
|
||||
typedef std::shared_ptr< ProceduralSkybox > ProceduralSkyboxPointer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue