From 1dcd5e8c3061bcd016dd99a04b939ba23e60497f Mon Sep 17 00:00:00 2001 From: "alokp@chromium.org" Date: Wed, 6 Jan 2010 20:32:57 +0000 Subject: Resubmit 35500: Added an application framework for demos. Ported hellotriangle example in OpenGL ES book to use the application framework. BUG=26099 TEST=Try running hello_triangle executable, you should see a red triangle. Review URL: http://codereview.chromium.org/525070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35647 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/demos/app_framework/platform.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gpu/demos/app_framework/platform.h (limited to 'gpu/demos/app_framework/platform.h') diff --git a/gpu/demos/app_framework/platform.h b/gpu/demos/app_framework/platform.h new file mode 100644 index 0000000..602979e --- /dev/null +++ b/gpu/demos/app_framework/platform.h @@ -0,0 +1,23 @@ +// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Platform-specific types and definitions for native widget handles. + +#ifndef GPU_DEMOS_APP_FRAMEWORK_PLATFORM_H_ +#define GPU_DEMOS_APP_FRAMEWORK_PLATFORM_H_ + +#ifdef _WINDOWS +#include +#endif // _WINDOWS + +#include "build/build_config.h" + +namespace gpu_demos { + +#if defined(OS_WIN) +typedef HWND NativeWindowHandle; +#endif // defined(OS_WIN) + +} // namespace gpu_demos +#endif // GPU_DEMOS_APP_FRAMEWORK_PLATFORM_H_ -- cgit v1.1