mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
updated comments, mark GetBufferSize() and ResizeBuffers() as obsolete
This commit is contained in:
parent
694a5b81a7
commit
606108ee4e
2 changed files with 20 additions and 11 deletions
|
|
@ -1,11 +1,6 @@
|
|||
/**
|
||||
* \file buffers.c
|
||||
* Frame buffer management.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.5
|
||||
* Version: 6.5.2
|
||||
*
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
*
|
||||
|
|
@ -28,6 +23,13 @@
|
|||
*/
|
||||
|
||||
|
||||
/**
|
||||
* \file buffers.c
|
||||
* General framebuffer-related functions, like glClear, glScissor, etc.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "glheader.h"
|
||||
#include "buffers.h"
|
||||
#include "colormac.h"
|
||||
|
|
@ -581,6 +583,9 @@ _mesa_ReadBuffer(GLenum buffer)
|
|||
#if _HAVE_FULL_GL
|
||||
|
||||
/**
|
||||
* XXX THIS IS OBSOLETE - drivers should take care of detecting window
|
||||
* size changes and act accordingly, likely calling _mesa_resize_framebuffer().
|
||||
*
|
||||
* GL_MESA_resize_buffers extension.
|
||||
*
|
||||
* When this function is called, we'll ask the window system how large
|
||||
|
|
@ -635,6 +640,10 @@ void _mesa_resizebuffers( GLcontext *ctx )
|
|||
ctx->NewState |= _NEW_BUFFERS; /* to update scissor / window bounds */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* XXX THIS IS OBSOLETE
|
||||
*/
|
||||
void GLAPIENTRY
|
||||
_mesa_ResizeBuffersMESA( void )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@
|
|||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.5
|
||||
* Version: 6.5.2
|
||||
*
|
||||
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
|
|
@ -52,8 +52,7 @@ struct mesa_display_list;
|
|||
struct dd_function_table {
|
||||
/**
|
||||
* Return a string as needed by glGetString().
|
||||
*
|
||||
* Only the GL_RENDERER token must be implemented. Otherwise, NULL can be
|
||||
* Only the GL_RENDERER query must be implemented. Otherwise, NULL can be
|
||||
* returned.
|
||||
*/
|
||||
const GLubyte * (*GetString)( GLcontext *ctx, GLenum name );
|
||||
|
|
@ -70,19 +69,20 @@ struct dd_function_table {
|
|||
* Get the width and height of the named buffer/window.
|
||||
*
|
||||
* Mesa uses this to determine when the driver's window size has changed.
|
||||
* XXX OBSOLETE: this function will be removed in the future.
|
||||
*/
|
||||
void (*GetBufferSize)( GLframebuffer *buffer,
|
||||
GLuint *width, GLuint *height );
|
||||
|
||||
/**
|
||||
* Resize the given framebuffer to the given size.
|
||||
* XXX OBSOLETE: this function will be removed in the future.
|
||||
*/
|
||||
void (*ResizeBuffers)( GLcontext *ctx, GLframebuffer *fb,
|
||||
GLuint width, GLuint height);
|
||||
|
||||
/**
|
||||
* Called whenever an error is generated.
|
||||
*
|
||||
* __GLcontextRec::ErrorValue contains the error value.
|
||||
*/
|
||||
void (*Error)( GLcontext *ctx );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue