// Init() public override void Init() { RC.ClearColor = new float4(0, 0, 0, 1); _shaderProgram = RC.CreateShader(Vs, Ps); RC.SetShader(_shaderProgram); _stereo3D = new Stereo3D(Stereo3DMode.Anaglyph, Width, Height); _stereo3D.AttachToContext(RC); _exampleLevel = new Level(RC, _shaderProgram, _stereo3D); }
public Level(RenderContext rc, ShaderProgram sp, int id, Stereo3D stereo3D) { ObjRandom = new Random(); VColorObj = sp.GetShaderParam("vColor"); VTextureObj = sp.GetShaderParam("vTexture"); RContext = rc; _stereo3D = stereo3D; UseStereo3D = false; ConstructLevel(id); }
public Level(RenderContext rc, ShaderProgram sp, Stereo3D stereo3D) : this(rc, sp, 0, stereo3D) { }