Click here to Skip to main content
12,692,778 members (35,021 online)
Click here to Skip to main content
Articles » Multimedia » DirectX » General » Downloads

Tagged as


40 bookmarked

Interactive 3D Spectrum Analyzer Visualization for Windows Media Player

, 17 May 2009 CPOL
Interactive 3D Spectrum Analyzer for Windows Media Player using DirectX 9 and some light GPGPU.
 * Copyright (c) 2005-2009, Carlo McWhirter. All Rights Reserved.
 * Copyright (c) 2009, Hyteq Systems. All Rights Reserved.

#pragma once

 * GLRenderContext Class.
 * Creates an opengl rendering context. If multiple OpenGL rendering
 * contexts exist in an application, this class will make sure only
 * one rendering context is active at a time.
class GLRenderContext
	/// Constructor
	/// @param hReferenceDC used to build the pixel format
	/// @param bIsMemoryDC Set to TRUE to initialize the pixel format for a MEMORY device context

	/// Disassociates and frees the current device context

	/// Called to prepare this class for rendering.
	void Initialize(HDC hReferenceDC, BOOL bIsMemoryDC = FALSE);

	/// Called to begin rendering.
	void Begin(HDC hDC, BOOL bIsMemoryDC = FALSE);

	/// Called to end rendering.
	void End(HDC hDC);

	/// Checks whether the context has been initialized at least once.
	BOOL IsInitialized();

	HGLRC		m_hRC;
	static BOOL	m_bIsInitialized;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Carlo McWhirter
Software Developer (Senior)
United States United States
I'm a Microsoft Certified Professional (MCP) in C++. I'm fluent in C/C++, C# and many other languages.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 17 May 2009
Article Copyright 2009 by Carlo McWhirter
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid