#define STBI_NO_STDIO
#define STBI_NO_WRITE
#define STBI_NO_HDR
/* stbi-1.18 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c
when you control the images you're loading
QUICK NOTES:
Primarily of interest to game developers and other people who can
avoid problematic images and only need the trivial interface
JPEG baseline (no JPEG progressive, no oddball channel decimations)
PNG 8-bit only
BMP non-1bpp, non-RLE
TGA (not sure what subset, if a subset)
PSD (composited view only, no extra channels)
HDR (radiance rgbE format)
writes BMP,TGA (define STBI_NO_WRITE to remove code)
decoded from memory or through stdio FILE (define STBI_NO_STDIO to remove code)
supports installable dequantizing-IDCT, YCbCr-to-RGB conversion (define STBI_SIMD)
TODO:
stbi_info_*
history:
1.18 fix a threading bug (local mutable static)
1.17 support interlaced PNG
1.16 major bugfix - convert_format converted one too many pixels
1.15 initialize some fields for thread safety
1.14 fix threadsafe conversion bug; header-file-only version (#define STBI_HEADER_FILE_ONLY before including)
1.13 threadsafe
1.12 const qualifiers in the API
1.11 Support installable IDCT, colorspace conversion routines
1.10 Fixes for 64-bit (don't use "unsigned long")
optimized upsampling by Fabian "ryg" Giesen
1.09 Fix format-conversion for PSD code (bad global variables!)
1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz
1.07 attempt to fix C++ warning/errors again
1.06 attempt to fix C++ warning/errors again
1.05 fix TGA loading to return correct *comp and use good luminance calc
1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free
1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR
1.02 support for (subset of) HDR files, float interface for preferred access to them
1.01 fix bug: possible bug in handling right-side up bmps... not sure
fix bug: the stbi_bmp_load() and stbi_tga_load() functions didn't work at all
1.00 interface to zlib that skips zlib header
0.99 correct handling of alpha in palette
0.98 TGA loader by lonesock; dynamically add loaders (untested)
0.97 jpeg errors on too large a file; also catch another malloc failure
0.96 fix detection of invalid v value - particleman@mollyrocket forum
0.95 during header scan, seek to markers in case of padding
0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same
0.93 handle jpegtran output; verbose errors
0.92 read 4,8,16,24,32-bit BMP files of several formats
0.91 output 24-bit Windows 3.0 BMP files
0.90 fix a few more warnings; bump version number to approach 1.0
0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd
0.60 fix compiling as c++
0.59 fix warnings: merge Dave Moore's -Wall fixes
0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian
0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less
than 16 available
0.56 fix bug: zlib uncompressed mode len vs. nlen
0.55 fix bug: restart_interval not initialized to 0
0.54 allow NULL for 'int *comp'
0.53 fix bug in png 3->4; speedup png decoding
0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments
0.51 obey req_comp requests, 1-component jpegs return as 1-component,
on 'test' only check type, not whether we support this variant
*/
#ifndef STBI_INCLUDE_STB_IMAGE_H
#define STBI_INCLUDE_STB_IMAGE_H
//// begin header file ////////////////////////////////////////////////////
//
// Limitations:
// - no progressive/interlaced support (jpeg, png)
// - 8-bit samples only (jpeg, png)
// - not threadsafe
// - channel subsampling of at most 2 in each dimension (jpeg)
// - no delayed line count (jpeg) -- IJG doesn't support either
//
// Basic usage (see HDR discussion below):
// int x,y,n;
// unsigned char *data = stbi_load(filename, &x, &y, &n, 0);
// // ... process data if not NULL ...
// // ... x = width, y = height, n = # 8-bit components per pixel ...
// // ... replace '0' with '1'..'4' to force that many components per pixel
// stbi_image_free(data)
//
// Standard parameters:
// int *x -- outputs image width in pixels
// int *y -- outputs image height in pixels
// int *comp -- outputs # of image components in image file
// int req_comp -- if non-zero, # of image components requested in result
//
// The return value from an image loader is an 'unsigned char *' which points
// to the pixel data. The pixel data consists of *y scanlines of *x pixels,
// with each pixel consisting of N interleaved 8-bit components; the first
// pixel pointed to is top-left-most in the image. There is no padding between
// image scanlines or between pixels, regardless of format. The number of
// components N is 'req_comp' if req_comp is non-zero, or *comp otherwise.
// If req_comp is non-zero, *comp has the number of components that _would_
// have been output otherwise. E.g. if you set req_comp to 4, you will always
// get RGBA output, but you can check *comp to easily see if it's opaque.
//
// An output image with N components has the following components interleaved
// in this order in each pixel:
//
// N=#comp components
// 1 grey
// 2 grey, alpha
// 3 red, green, blue
// 4 red, green, blue, alpha
//
// If image loading fails for any reason, the return value will be NULL,
// and *x, *y, *comp will be unchanged. The function stbi_failure_reason()
// can be queried for an extremely brief, end-user unfriendly explanation
// of why the load failed. Define STBI_NO_FAILURE_STRINGS to avoid
// compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly
// more user-friendly ones.
//
// Paletted PNG and BMP images are automatically depalettized.
//
//
// ===========================================================================
//
// HDR image support (disable by defining STBI_NO_HDR)
//
// stb_image now supports loading HDR images in general, and currently
// the Radiance .HDR file format, although the support is provided
// generically. You can still load any file through the existing interface;
// if you attempt to load an HDR file, it will be automatically remapped to
// LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1;
// both of these constants can be reconfigured through this interface:
//
// stbi_hdr_to_ldr_gamma(2.2f);
// stbi_hdr_to_ldr_scale(1.0f);
//
// (note, do not use _inverse_ constants; stbi_image will invert them
// appropriately).
//
// Additionally, there is a new, parallel interface for loading files as
// (linear) floats to preserve the full dynamic range:
//
// float *data = stbi_loadf(filename, &x, &y, &n, 0);
//
// If you load LDR images through this interface, those images will
// be promoted to floating point values, run through the inverse of
// constants corresponding to the above:
//
// stbi_ldr_to_hdr_scale(1.0f);
// stbi_ldr_to_hdr_gamma(2.2f);
//
// Finally, given a filename (or an open file or memory block--see header
// file for details) containing image data, you can query for the "most
// appropriate" interface to use (that is, whether the image is HDR or
// not), using:
//
// stbi_is_hdr(char *filename);
#ifndef STBI_NO_STDIO
#include <stdio.h>
#endif
#define STBI_VERSION 1
enum
{
STBI_default = 0, // only used for req_comp
STBI_grey
没有合适的资源?快使用搜索试试~ 我知道了~
DirectUI_menu.rar_DEMO_direct menu
共270个文件
png:96个
bmp:43个
svn-base:26个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 153 浏览量
2022-09-14
22:02:13
上传
评论
收藏 3.12MB RAR 举报
温馨提示
菜单demo 常用的界面库写的 是初学者的难得资料 高手勿下
资源推荐
资源详情
资源评论
收起资源包目录
DirectUI_menu.rar_DEMO_direct menu (270个子文件)
all-wcprops 2KB
UIlib.aps 33KB
winbk.bmp 61KB
winbk.bmp 61KB
scrollbar.bmp 37KB
scrollbar.bmp 37KB
scrollbar.bmp 37KB
scrollbar.bmp 37KB
frame_btn_max.bmp 11KB
frame_btn_max.bmp 11KB
frame_btn_min.bmp 6KB
frame_btn_min.bmp 6KB
button_nor.bmp 5KB
button_down.bmp 5KB
button_over.bmp 5KB
button_nor.bmp 5KB
button_down.bmp 5KB
button_over.bmp 5KB
Combo_nor.bmp 4KB
Combo_nor.bmp 4KB
Combo_nor.bmp 4KB
frame_btn_close_hot.bmp 2KB
frame_btn_close_down.bmp 2KB
frame_btn_close_disable.bmp 2KB
frame_btn_close_normal.bmp 2KB
frame_btn_close_hot.bmp 2KB
frame_btn_close_down.bmp 2KB
frame_btn_close_disable.bmp 2KB
frame_btn_close_normal.bmp 2KB
navigationbar.bmp 2KB
headerctrl_down.bmp 2KB
headerctrl_normal.bmp 2KB
headerctrl_hot.bmp 2KB
headerctrl_normal.bmp 2KB
headerctrl_down.bmp 2KB
headerctrl_hot.bmp 2KB
vertical_border.bmp 2KB
horizontal_border.bmp 792B
tree_select.bmp 790B
tree_hot.bmp 790B
tree_select.bmp 790B
tree_hot.bmp 790B
examine_background.bmp 360B
Headerctrl_Sperator.bmp 136B
Headerctrl_Sperator.bmp 136B
stb_image.c 125KB
UIList.cpp 73KB
UIComonControls.cpp 70KB
UIManager.cpp 70KB
UIRender.cpp 60KB
UIContainer.cpp 55KB
MenuUI.cpp 55KB
UIActiveX.cpp 38KB
MenuUI.cpp 33KB
UICombo.cpp 32KB
UIBase.cpp 29KB
GameDemo.cpp 23KB
UIMarkup.cpp 19KB
UIDlgBuilder.cpp 16KB
MiniDumper.cpp 11KB
360Safe.cpp 9KB
StdAfx.cpp 1KB
StdAfx.cpp 1KB
UIlib.cpp 1KB
StdAfx.cpp 282B
LoginFrameWnd.cpp 30B
UpgradeReport.css 3KB
UIlib_d.dll 1.08MB
UIlib_d.dll 1.08MB
entries 4KB
GameDemo_d.exe 526KB
GameDemo_d.exe 524KB
UIlib_d.exp 207KB
UpgradeReport_Plus.gif 71B
UpgradeReport_Minus.gif 69B
UIManager.h 15KB
UIList.h 15KB
UIBase.h 11KB
UIComonControls.h 11KB
ControlEx.h 10KB
MenuUI.h 6KB
UIContainer.h 6KB
LoginFrameWnd.h 6KB
MenuUI.h 5KB
UICombo.h 4KB
UIMarkup.h 3KB
UIRender.h 2KB
UIActiveX.h 1KB
resource.h 1KB
MiniDumper.h 904B
StdAfx.h 870B
StdAfx.h 870B
StdAfx.h 771B
UIDlgBuilder.h 740B
ControlEx.h 699B
UIlib.h 546B
icon.ico 264KB
UIlib_d.ilk 2.02MB
GameDemo_d.ilk 1.81MB
UIlib_d.lib 339KB
共 270 条
- 1
- 2
- 3
资源评论
局外狗
- 粉丝: 66
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功