KiCad PCB EDA Suite
Loading...
Searching...
No Matches
buffers_debug.cpp File Reference
#include "buffers_debug.h"
#include <wx/image.h>

Go to the source code of this file.

Functions

static void dbg_save_rgb_buffer (const wxString &aFileName, unsigned char *aRGBpixelBuffer, unsigned int aXSize, unsigned int aYSize)
 
static void dbg_save_rgb_a_buffer (const wxString &aFileName, unsigned char *aRGBpixelBuffer, unsigned char *aAlphaBuffer, unsigned int aXSize, unsigned int aYSize)
 
void DBG_SaveBuffer (const wxString &aFileName, const unsigned char *aInBuffer, unsigned int aXSize, unsigned int aYSize)
 
void DBG_SaveBuffer (const wxString &aFileName, const float *aInBuffer, unsigned int aXSize, unsigned int aYSize)
 
void DBG_SaveBuffer (const wxString &aFileName, const SFVEC3F *aInBuffer, unsigned int aXSize, unsigned int aYSize)
 
void DBG_SaveBuffer (const wxString &aFileName, const SFVEC4F *aInBuffer, unsigned int aXSize, unsigned int aYSize)
 
void DBG_SaveNormalsBuffer (const wxString &aFileName, const SFVEC3F *aInNormalsBuffer, unsigned int aXSize, unsigned int aYSize)
 

Function Documentation

◆ dbg_save_rgb_a_buffer()

static void dbg_save_rgb_a_buffer ( const wxString &  aFileName,
unsigned char *  aRGBpixelBuffer,
unsigned char *  aAlphaBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)
static

Definition at line 49 of file buffers_debug.cpp.

References image.

Referenced by DBG_SaveBuffer().

◆ dbg_save_rgb_buffer()

static void dbg_save_rgb_buffer ( const wxString &  aFileName,
unsigned char *  aRGBpixelBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)
static
Parameters
aRGBpixelBufferfrom the wxWidgets documentation "The data given must have the size (width*height*3). The data must have been allocated with malloc(), NOT with operator new."

Definition at line 38 of file buffers_debug.cpp.

References image.

Referenced by DBG_SaveBuffer(), and DBG_SaveNormalsBuffer().

◆ DBG_SaveBuffer() [1/4]

void DBG_SaveBuffer ( const wxString &  aFileName,
const float *  aInBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)

Definition at line 83 of file buffers_debug.cpp.

References dbg_save_rgb_buffer().

◆ DBG_SaveBuffer() [2/4]

void DBG_SaveBuffer ( const wxString &  aFileName,
const SFVEC3F aInBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)

Definition at line 104 of file buffers_debug.cpp.

References dbg_save_rgb_buffer().

◆ DBG_SaveBuffer() [3/4]

void DBG_SaveBuffer ( const wxString &  aFileName,
const SFVEC4F aInBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)

Definition at line 126 of file buffers_debug.cpp.

References dbg_save_rgb_a_buffer().

◆ DBG_SaveBuffer() [4/4]

void DBG_SaveBuffer ( const wxString &  aFileName,
const unsigned char *  aInBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)

Definition at line 62 of file buffers_debug.cpp.

References dbg_save_rgb_buffer().

Referenced by POST_SHADER::DebugBuffersOutputAsImages(), and IMAGE::SaveAsPNG().

◆ DBG_SaveNormalsBuffer()

void DBG_SaveNormalsBuffer ( const wxString &  aFileName,
const SFVEC3F aInNormalsBuffer,
unsigned int  aXSize,
unsigned int  aYSize 
)

Definition at line 151 of file buffers_debug.cpp.

References dbg_save_rgb_buffer().

Referenced by POST_SHADER::DebugBuffersOutputAsImages().