Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- C++
- shader
- OpenGL
- opengl 3.3
- voronoi
- gsls
- Texture2D
- Codeforce
- Color struct
- 아트
- opengl3.3
- ShaderProgram
- string_view
Archives
- Today
- Total
목록Color struct (1)
Longseabear DevLog
Color struct 만들기
평화롭게 Texture 편을 학습하며 Texture를 관리하는 class를 만들고 있었는데, 만들다보니 unity의 Texture2D에 있던 멤버 변수들이 이해가 되는게 아니던가(mipCount 라던지). 이를 경험하고나니 내 코드를 좀 더 unity 처럼 구조적으로 관리하고 싶어졌다. 이를 위해 가장 기본적인 color struct를 만들어봤다. color 구조체에 대한 내용은 unity API 문서를 대충 참고하여 만들어봤다. Color.h #pragma once #define MAKE_COLOR_STATIC_VALUE(color, r,g,b,a) const Color Color::color = {r,g,b,a}; namespace LEapsGL { union Color { struct { float..
Graphics Project
2023. 1. 31. 02:03