Jamie Madill | 1e9ae07 | 2014-11-06 15:27:21 -0500 | [diff] [blame] | 1 | // |
| 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 Lang | 2b5420c | 2014-11-19 14:20:15 -0500 | [diff] [blame] | 9 | #include "libANGLE/Data.h" |
| 10 | #include "libANGLE/ResourceManager.h" |
Jamie Madill | 1e9ae07 | 2014-11-06 15:27:21 -0500 | [diff] [blame] | 11 | |
| 12 | namespace gl |
| 13 | { |
| 14 | |
Geoff Lang | f0aa842 | 2015-09-29 15:08:34 -0400 | [diff] [blame] | 15 | Data::Data(uintptr_t contextIn, |
| 16 | GLint clientVersionIn, |
| 17 | const State &stateIn, |
| 18 | const Caps &capsIn, |
| 19 | const TextureCapsMap &textureCapsIn, |
| 20 | const Extensions &extensionsIn, |
Jamie Madill | 1e9ae07 | 2014-11-06 15:27:21 -0500 | [diff] [blame] | 21 | const ResourceManager *resourceManagerIn) |
Geoff Lang | f0aa842 | 2015-09-29 15:08:34 -0400 | [diff] [blame] | 22 | : context(contextIn), |
| 23 | clientVersion(clientVersionIn), |
Jamie Madill | 1e9ae07 | 2014-11-06 15:27:21 -0500 | [diff] [blame] | 24 | state(&stateIn), |
| 25 | caps(&capsIn), |
| 26 | textureCaps(&textureCapsIn), |
| 27 | extensions(&extensionsIn), |
| 28 | resourceManager(resourceManagerIn) |
| 29 | {} |
| 30 | |
| 31 | Data::~Data() |
| 32 | { |
| 33 | } |
| 34 | |
Jamie Madill | 1e9ae07 | 2014-11-06 15:27:21 -0500 | [diff] [blame] | 35 | } |