29.clean_comments_7.patch
| nel/src/3d/driver/opengl/driver_opengl.cpp (working copy) | ||
|---|---|---|
| 240 | 240 |
// Process the message by the emitter |
| 241 | 241 |
pDriver->_EventEmitter.processMessage(); |
| 242 | 242 |
} |
| 243 |
// TODO i'don t know what to return exactly
|
|
| 243 |
// TODO i don't know what to return exactly
|
|
| 244 | 244 |
return (e->type == MapNotify) && (e->xmap.window == (Window) arg); |
| 245 | 245 |
} |
| 246 | 246 |
*/ |
| ... | ... | |
| 389 | 389 |
|
| 390 | 390 |
_CurrentMaterialSupportedShader= CMaterial::Normal; |
| 391 | 391 |
|
| 392 |
// to avoid any problem if light0 never setted up, and ligthmap rendered
|
|
| 392 |
// to avoid any problem if light0 never setted up, and lightmap rendered
|
|
| 393 | 393 |
_UserLight0.setupDirectional(CRGBA::Black, CRGBA::White, CRGBA::White, CVector::K); |
| 394 | 394 |
|
| 395 | 395 |
_TextureTargetCubeFace = 0; |
| ... | ... | |
| 445 | 445 |
nlwarning ("(CDriverGL::init): can't create DC");
|
| 446 | 446 |
} |
| 447 | 447 |
|
| 448 |
// ati specific : try to retrieve driver version
|
|
| 448 |
// ATI specific : try to retrieve driver version
|
|
| 449 | 449 |
retrieveATIDriverVersion(); |
| 450 | 450 |
#else |
| 451 | 451 |
|
| ... | ... | |
| 588 | 588 |
AdjustWindowRectEx (&rc, GetWindowStyle (_hWnd), GetMenu (_hWnd) != NULL, GetWindowExStyle (_hWnd)); |
| 589 | 589 |
SetWindowPos (_hWnd, NULL, 0, 0, rc.right - rc.left, rc.bottom - rc.top, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE ); |
| 590 | 590 |
|
| 591 |
// Get the |
|
| 591 |
// Get the device context
|
|
| 592 | 592 |
HDC tempHDC = GetDC(tmpHWND); |
| 593 | 593 |
|
| 594 | 594 |
_Depth=uint8(GetDeviceCaps(tempHDC,BITSPIXEL)); |
| ... | ... | |
| 777 | 777 |
_WindowHeight = height; |
| 778 | 778 |
|
| 779 | 779 |
/* The next step is to create a device context for the newly created pbuffer. To do this, |
| 780 |
call the the function: */
|
|
| 780 |
call the function: */ |
|
| 781 | 781 |
_hDC = nwglGetPbufferDCARB( _PBuffer ); |
| 782 | 782 |
if (_hDC == NULL) |
| 783 | 783 |
{
|
| ... | ... | |
| 1868 | 1868 |
//resetTextureShaders(); |
| 1869 | 1869 |
activeVertexProgram(NULL); |
| 1870 | 1870 |
|
| 1871 |
/* Yoyo: must do this (GeForce bug ??) esle weird results if end render with a VBHard.
|
|
| 1871 |
/* Yoyo: must do this (GeForce bug ??) else weird results if end render with a VBHard.
|
|
| 1872 | 1872 |
Setup a std vertex buffer to ensure NVidia synchronisation. |
| 1873 | 1873 |
*/ |
| 1874 | 1874 |
if (_Extensions.NVVertexArrayRange) |
| ... | ... | |
| 1957 | 1957 |
|
| 1958 | 1958 |
|
| 1959 | 1959 |
|
| 1960 |
// Activate the default texture environnments for all stages.
|
|
| 1960 |
// Activate the default texture environments for all stages. |
|
| 1961 | 1961 |
//=========================================================== |
| 1962 | 1962 |
// This is not a requirement, but it ensure a more stable state each frame. |
| 1963 | 1963 |
// (well, maybe the good reason is "it hides much more the bugs" :o) ). |
| ... | ... | |
| 2220 | 2220 |
float height; |
| 2221 | 2221 |
viewport.getValues (x, y, width, height); |
| 2222 | 2222 |
|
| 2223 |
// Render to texture : adjuste the viewport
|
|
| 2223 |
// Render to texture : adjust the viewport |
|
| 2224 | 2224 |
if (_TextureTarget) |
| 2225 | 2225 |
{
|
| 2226 | 2226 |
float factorX = 1; |
| ... | ... | |
| 2291 | 2291 |
float width= scissor.Width; |
| 2292 | 2292 |
float height= scissor.Height; |
| 2293 | 2293 |
|
| 2294 |
// Render to texture : adjuste the scissor
|
|
| 2294 |
// Render to texture : adjust the scissor |
|
| 2295 | 2295 |
if (_TextureTarget) |
| 2296 | 2296 |
{
|
| 2297 | 2297 |
float factorX = 1; |
| ... | ... | |
| 2443 | 2443 |
{
|
| 2444 | 2444 |
H_AUTO_OGL(CDriverGL_getWindowPos) |
| 2445 | 2445 |
#ifdef NL_OS_WINDOWS |
| 2446 |
// Off-srceen rendering ?
|
|
| 2446 |
// Off-screen rendering ?
|
|
| 2447 | 2447 |
if (_OffScreen) |
| 2448 | 2448 |
{
|
| 2449 | 2449 |
if (_PBuffer) |
| nel/src/3d/driver/opengl/driver_opengl.h (working copy) | ||
|---|---|---|
| 225 | 225 |
|
| 226 | 226 |
|
| 227 | 227 |
// *************************************************************************** |
| 228 |
/// Info for the last VertexBuffer setuped (iether normal or hard).
|
|
| 228 |
/// Info for the last VertexBuffer setuped (either normal or hard).
|
|
| 229 | 229 |
class CVertexBufferInfo |
| 230 | 230 |
{
|
| 231 | 231 |
public: |
| ... | ... | |
| 235 | 235 |
CVertexBuffer::TType Type[CVertexBuffer::NumValue]; |
| 236 | 236 |
uint8 UVRouting[CVertexBuffer::MaxStage]; |
| 237 | 237 |
|
| 238 |
// NB: ptrs are invalid if VertexFormat does not support the compoennt. must test VertexFormat, not the ptr.
|
|
| 238 |
// NB: ptrs are invalid if VertexFormat does not support the component. must test VertexFormat, not the ptr.
|
|
| 239 | 239 |
void *ValuePtr[CVertexBuffer::NumValue]; |
| 240 | 240 |
|
| 241 | 241 |
|
| ... | ... | |
| 258 | 258 |
|
| 259 | 259 |
|
| 260 | 260 |
// *************************************************************************** |
| 261 |
/// Info for the last IndexBuffer setuped (iether normal or hard).
|
|
| 261 |
/// Info for the last IndexBuffer setuped (either normal or hard).
|
|
| 262 | 262 |
class CIndexBufferInfo |
| 263 | 263 |
{
|
| 264 | 264 |
public: |
| nel/src/sound/background_source.h (working copy) | ||
|---|---|---|
| 1 | 1 |
/** \file background_source.h |
| 2 |
* CSimpleSource: implementation of USource
|
|
| 2 |
* CBackgroundSource: implementation of USource
|
|
| 3 | 3 |
*/ |
| 4 | 4 |
|
| 5 | 5 |
/* Copyright, 2001 Nevrax Ltd. |
| nel/src/sound/clustered_sound.h (working copy) | ||
|---|---|---|
| 74 | 74 |
sint32 Occlusion; |
| 75 | 75 |
/// The occlusion LF factor (see EAX spec) |
| 76 | 76 |
float OcclusionLFFactor; |
| 77 |
/// The occlusion romm ration
|
|
| 77 |
/// The occlusion room ratio
|
|
| 78 | 78 |
float OcclusionRoomRatio; |
| 79 |
/// The obsctruction att db
|
|
| 79 |
/// The obstruction att db |
|
| 80 | 80 |
sint32 Obstruction; |
| 81 | 81 |
}; |
| 82 | 82 |
|
| nel/src/sound/complex_source.h (working copy) | ||
|---|---|---|
| 1 | 1 |
/** \file complex_source.h |
| 2 |
* CSourceUSer: implementation of USource
|
|
| 2 |
* CComplexSource: implementation of USource
|
|
| 3 | 3 |
*/ |
| 4 | 4 |
|
| 5 | 5 |
/* Copyright, 2001 Nevrax Ltd. |
| nel/src/sound/sample_bank.cpp (working copy) | ||
|---|---|---|
| 39 | 39 |
|
| 40 | 40 |
namespace NLSOUND {
|
| 41 | 41 |
|
| 42 |
/// Constante for the number of file to load asynchronously at a time.
|
|
| 42 |
/// Constant for the number of file to load asynchronously at a time. |
|
| 43 | 43 |
uint32 ASYNC_LOADING_SPLIT = 10; // 10 file by 10 file |
| 44 | 44 |
|
| 45 | 45 |
CSampleBank::TSampleBankContainer CSampleBank::_Banks; |
| nel/src/sound/source_common.h (working copy) | ||
|---|---|---|
| 50 | 50 |
~CSourceCommon(); |
| 51 | 51 |
|
| 52 | 52 |
|
| 53 |
/// Get the type the the source.
|
|
| 53 |
/// Get the type of the source.
|
|
| 54 | 54 |
virtual TSOURCE_TYPE getType() const = 0; |
| 55 | 55 |
|
| 56 | 56 |
void setPriority( TSoundPriority pr); |