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
// Modules should be imported | |
import Foundation | |
import Cglew | |
import Cglfw | |
import OpenGL.GL3 | |
// Shader source code | |
fileprivate var vShaderCode = """ | |
#version 330 core\n |
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
import Foundation | |
import Cglew | |
import Cglfw | |
public final class Shader { | |
let vShaderCode: String | |
let fShaderCode: String | |
let program: UInt32 | |