1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00
GLideN64/src/NoiseTexture.h

31 lines
491 B
C
Raw Normal View History

2017-01-05 12:37:14 +00:00
#pragma once
#include <array>
#include <vector>
2017-01-06 07:33:49 +00:00
#include <memory>
2017-01-05 12:37:14 +00:00
#include "Types.h"
2017-02-01 20:38:02 +00:00
#define NOISE_TEX_NUM 30
2017-01-06 07:33:49 +00:00
2017-01-05 12:37:14 +00:00
struct CachedTexture;
typedef std::array<std::vector<u8>, NOISE_TEX_NUM> NoiseTexturesData;
2017-01-05 12:37:14 +00:00
class NoiseTexture
{
public:
NoiseTexture();
void init();
void destroy();
void update();
private:
void _fillTextureData();
2017-02-01 20:38:02 +00:00
CachedTexture * m_pTexture[NOISE_TEX_NUM];
2017-01-05 12:37:14 +00:00
u32 m_DList;
2017-02-01 20:38:02 +00:00
u32 m_currTex, m_prevTex;
NoiseTexturesData m_texData;
2017-01-05 12:37:14 +00:00
};
2017-02-01 20:38:02 +00:00
extern NoiseTexture g_noiseTexture;