blob: fc9e001cf839361db8971d1de7789fb9e1c41c48 [file] [log] [blame]
Jamie Madill1e9ae072014-11-06 15:27:21 -05001//
2// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// Data.cpp: Container class for all GL relevant state, caps and objects
8
Geoff Lang2b5420c2014-11-19 14:20:15 -05009#include "libANGLE/Data.h"
10#include "libANGLE/ResourceManager.h"
Jamie Madill1e9ae072014-11-06 15:27:21 -050011
12namespace gl
13{
14
Geoff Langf0aa8422015-09-29 15:08:34 -040015Data::Data(uintptr_t contextIn,
16 GLint clientVersionIn,
17 const State &stateIn,
18 const Caps &capsIn,
19 const TextureCapsMap &textureCapsIn,
20 const Extensions &extensionsIn,
Jamie Madill1e9ae072014-11-06 15:27:21 -050021 const ResourceManager *resourceManagerIn)
Geoff Langf0aa8422015-09-29 15:08:34 -040022 : context(contextIn),
23 clientVersion(clientVersionIn),
Jamie Madill1e9ae072014-11-06 15:27:21 -050024 state(&stateIn),
25 caps(&capsIn),
26 textureCaps(&textureCapsIn),
27 extensions(&extensionsIn),
28 resourceManager(resourceManagerIn)
29{}
30
31Data::~Data()
32{
33}
34
Jamie Madill1e9ae072014-11-06 15:27:21 -050035}