This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool TestSamplers() | |
{ | |
GLuint c; | |
glGenRenderbuffers(1, &c); | |
glNamedRenderbufferStorageEXT(c, GL_RGBA8, 4, 1); | |
GLuint f; | |
glGenFramebuffers(1, &f); | |
glNamedFramebufferRenderbufferEXT(f, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool TestVertexArrayObjects() | |
{ | |
GLuint va; | |
glGenVertexArrays(1, &va); | |
glBindVertexArray(va); | |
glDeleteVertexArrays(1, &va); | |
GLubyte input[4] = { 219, 102, 88, 7 }; | |
for (int i = 0; i < 2; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAIN = triangle | |
CC = g++ | |
CFLAGS = -DLINUX -std=c++0x -Wall -Wextra -Werror -g | |
LFLAGS = -lX11 -lGL | |
SRCS = main.cpp | |
OBJS = $(SRCS:.cpp=.o) | |
DEPS = $(OBJS:.o=.d) | |
all: $(MAIN) |