| 38 | return true; |
| 39 | } |
| 40 | void Texture::Fill(glm::vec4 val) |
| 41 | { |
| 42 | // TODO: mipmaps |
| 43 | for (int i = 0; i < Width * Height * Depth; i++) |
| 44 | memcpy(Data[0] + i * 4, (void*)glm::value_ptr(val), sizeof(float) * 4); |
| 45 | } |
| 46 | glm::vec4 Texture::Sample(float u, float v, float w, float mip) |
| 47 | { |
| 48 | // TODO: mipmaps |
nothing calls this directly
no outgoing calls
no test coverage detected