33 lines
793 B
Plaintext
33 lines
793 B
Plaintext
// -----------------------------------------------------------------------------
|
|
// file="GLBufferObjectBase"
|
|
// Project: StgSharp
|
|
// Copyright (c) Nitload.
|
|
// SPDX-License-Identifier: MIT
|
|
// -----------------------------------------------------------------------------
|
|
|
|
using Nitload.Graphics.OpenGL;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Nitload.Graphics.OpenGL
|
|
{
|
|
public abstract class GlBufferObjectBase : BufferObjectBase
|
|
{
|
|
|
|
private readonly glRender _contextBinding;
|
|
|
|
protected GlBufferObjectBase(
|
|
glRender contextBinding
|
|
)
|
|
{
|
|
binding = contextBinding;
|
|
_contextBinding = contextBinding;
|
|
}
|
|
|
|
protected OpenGLFunction GL => _contextBinding.GL;
|
|
|
|
}
|
|
}
|