Advertisement
Guest User

openGL Intercept config PPSSPP texture ripping

a guest
Dec 21st, 2014
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.88 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////
  2. //
  3. // GLI - openGL Intercept Configuration file
  4. //
  5. //////////////////////////////////////////////////////////////
  6. //
  7. // (Note: all options are case sensetitive)
  8. //
  9. //////////////////////////////////////////////////////////////
  10.  
  11. //ProfileName = "Basic Logging";
  12. //ProfileDescription = "Does Basic Logging";
  13.  
  14. //////////////////////////////////////////////////////////////
  15. //
  16. // Log Options:
  17. //
  18. //////////////////////////////////////////////////////////////
  19. //
  20. // LogEnabled - Enable function call logging
  21. //
  22. // LogFlush - If true, will flush the logger after each OpenGL call is made.
  23. // This is useful to catch a OpenGL call that crashes the
  24. // application. This only applies to text file logging.
  25. //
  26. // LogPath - Path to store the logged files. If not specified, files
  27. // will be stored relative to the GLI OpenGL dll.
  28. //
  29. // LogFileName - The name of the file to log to (without extension)
  30. //
  31. // AdditionalRenderCalls - Names of additional OpenGL functions that are to be treated as render calls.
  32. // (extra frame and state info can be dumped at render calls)
  33. //
  34. // LogMaxNumFrames - The maximum number of frames that will be logged.
  35. // This is useful for retrieving startup information from a
  36. // application or limiting the file size on apps that make
  37. // a lot of OpenGL calls (Note: This also affects per-frame logging)
  38. //
  39. // LogFormat - The format of the log. If equal to "XML" (without quotes)
  40. // will log in the XML format. Else, the plain text format is used.
  41. //
  42. // XMLFormat::XSLFile - When the log format is XML, this option specifies the XSL file
  43. // to be used (if any). A XSL file usually formats the XML into a
  44. // readable HTML format.
  45. //
  46. // XMLFormat::BaseDir - The base (or source) directory where the XSL file can be found.
  47. //
  48. //////////////////////////////////////////////////////////////
  49.  
  50. FunctionLog
  51. {
  52. LogEnabled = True;
  53. LogFlush = False;
  54. //LogPath = "c:\temp\";
  55. LogFileName = "gliInterceptLog"
  56.  
  57. //AdditionalRenderCalls = ("glClear");
  58.  
  59. //LogMaxNumFrames = 200;
  60.  
  61. //LogFormat = XML;
  62.  
  63. XMLFormat
  64. {
  65. XSLFile = gliIntercept_DHTML2.xsl;
  66. BaseDir = "C:\Program Files\GLIntercept_1_3_0\XSL";
  67. }
  68. }
  69.  
  70.  
  71. //////////////////////////////////////////////////////////////
  72. //
  73. // LogPerFrame Options:
  74. //
  75. //////////////////////////////////////////////////////////////
  76. //
  77. // Enabled - Enable logging per frame. If this is true, instead of
  78. // logging all OpenGL calls, the below frame start keys will
  79. // enable the loggers at the start of a frame. The loggers
  80. // will be disabled when the keys are pressed again and the next
  81. // frame is reached (see OneFrameOnly for other options).
  82. //
  83. // Output of logging is saved to a directory called
  84. // Frame_XXXX where XXXX is the frame number that logging
  85. // started.
  86. //
  87. // FrameStartKeys - The keys used to enable/disable logging. Valid values can be any
  88. // combination of 0-9,a-z,f1-f12,ctrl,shift,tab,lwin,rwin,
  89. // print,up,down,left,right,add,sub,insert,delete etc.
  90. //
  91. // OneFrameOnly - If enabled, will only log only one frame per key-press.
  92. // Loggers will be disabled at the end of the next frame.
  93. //
  94. //////////////////////////////////////////////////////////////
  95.  
  96. LogPerFrame
  97. {
  98. Enabled = False;
  99. FrameStartKeys = (ctrl,shift,f);
  100. OneFrameOnly = True;
  101. }
  102.  
  103.  
  104.  
  105.  
  106. //////////////////////////////////////////////////////////////
  107. //
  108. // Input Files:
  109. //
  110. //////////////////////////////////////////////////////////////
  111. //
  112. // GLFunctionDefines - The file to retrieve the OpenGL function defines from.
  113. // (The text header files that contain the parameters of OpenGL functions to be logged)
  114. //
  115. // GLSystemLib - The full path to the "real" OpenGL system library. This will be assigned automatically
  116. // so usually does not have to be defined.
  117. //
  118. //////////////////////////////////////////////////////////////
  119.  
  120. InputFiles
  121. {
  122. GLFunctionDefines = "C:\Program Files\GLIntercept_1_3_0\GLFunctions\gliIncludes.h"
  123. //GLSystemLib = "c:\windows\system32\opengl32.dll"
  124. }
  125.  
  126. //////////////////////////////////////////////////////////////
  127. //
  128. // Error Checking:
  129. //
  130. //////////////////////////////////////////////////////////////
  131. //
  132. // GLErrorChecking - A OpenGL glGetError() is made after all appropiate OpenGL calls.
  133. // If an error is detected, the error code is logged to the current text/XML log next
  134. // to the function that caused the error.
  135. // (OpenGL Error context is still saved so application invoked glGetError() calls are safe)
  136. //
  137. // ThreadChecking - While GLIntercept is not currently thread-safe, (ie. So you cannot have multiple render
  138. // contexts active at the same time) enabling this option will perform basic thread checking.
  139. // (Will currently check OpenGL calls to see if they are made on the thread with the
  140. // active render context)
  141. //
  142. // BreakOnError - (used with above) Issue programmer debug breakpoint on an error.
  143. // Note that glIntercept alters the stack, so to get a valid call stack when debugging
  144. // you will need to step through some assembly (F10 on VC6) until the stack is restored.
  145. //
  146. // LogOnError - (used with above) Log all OpenGL errors to the GLIntercept error log (gliLog.txt).
  147. //
  148. // ExtendedErrorLog - (used with above) Report all available data about the function the produced the error.
  149. // (ie. Full resolved parameters that were passed to the function are reported.)
  150. // (Enabling this option will cause a severe slowdown even when no errors are produced. Only
  151. // enable when debugging specific errors)
  152. //
  153. // DebuggerErrorLog - Mirror the contents of the error log (gliLog.txt) file to the debuggers' window.
  154. //
  155. //////////////////////////////////////////////////////////////
  156.  
  157. ErrorChecking
  158. {
  159. GLErrorChecking = True;
  160. ThreadChecking = False;
  161. BreakOnError = False;
  162. LogOnError = True;
  163. ExtendedErrorLog = False;
  164. DebuggerErrorLog = True;
  165. }
  166.  
  167. //////////////////////////////////////////////////////////////
  168. //
  169. // Image logging:
  170. //
  171. //////////////////////////////////////////////////////////////
  172. //
  173. // LogEnabled - Enabled the image logger. OpenGL textures are saved to the directory
  174. // "Images" under the main log path. Only the texture types specified in
  175. // SaveGLTypes are saved.
  176. //
  177. // RenderCallStateLog - If enabled, each render call issued will list the currently bound
  178. // textures for all texture stages. (works with text and XML logging)
  179. //
  180. // SaveFormats - The image formats to save the textures in. Current valid formats are
  181. // PNG,JPG and TGA. Note that more than one format can be specified.
  182. // (ie. (PNG,TGA) will save all textures twice, once in PNG format, once
  183. // in TGA format)
  184. //
  185. // Note on image formats:
  186. // TGA - Is pixel precise and is the fastest save format but is also the biggest.
  187. // TGA's are also not supported by web browsers (if you use XML with XSL to view the logs).
  188. // PNG - Is pixel precise and is slower to save but is smaller than TGA.
  189. // PNG's are brower compatable.
  190. // JPG - Is a format that does not save alpha and saves colors in a lossy format.
  191. // It is the smallest format and is slower to save than TGA's.
  192. // JPG's are brower compatable.
  193. //
  194. // FlipXAxis - The saving of textures is upside-down by default. Using this option will
  195. // flip the image before saving.
  196. //
  197. // TileCubeMaps - Cube map textures are saved as six individual images. Enabling this option enables
  198. // the six image to be tiled together (flattened cube shaped) and saved as one image.
  199. //
  200. // SaveGLTypes - The types of OpenGL textures to save. Valid options are 1D,2D,3D and CUBE.
  201. // Note: NVRect textures use the 2D option.
  202. //
  203. // SavePbufferTex - This option enables/disables the saving of textures that are bound from a p-buffer.
  204. // Note: P-Buffer textures are saved each time a p-buffer is bound to the texture.
  205. // (ie. no checks are performed to see if the p-buffer has changed)
  206. //
  207. // ImageIcon->Enabled - This enables saving a icon version of all images saved. (useful in XML browser viewing)
  208. //
  209. // ImageIcon->SaveFormat - The format of the save icon images (TGA,PNG or JPG)
  210. //
  211. // ImageIcon->Size - The size of the icons to save
  212. //
  213. //////////////////////////////////////////////////////////////
  214.  
  215. ImageLog
  216. {
  217. LogEnabled = True;
  218.  
  219. RenderCallStateLog = True;
  220.  
  221. SaveFormats = TGA;
  222. FlipXAxis = False;
  223. TileCubeMaps= True;
  224.  
  225. SaveGLTypes = 2D;
  226. SavePbufferTex = False;
  227.  
  228. ImageIcon
  229. {
  230. Enabled=False;
  231. SaveFormat = TGA;
  232. Size = 40;
  233. }
  234. }
  235.  
  236. //////////////////////////////////////////////////////////////
  237. //
  238. // Shader logging
  239. //
  240. //////////////////////////////////////////////////////////////
  241. //
  242. // LogEnabled - Enabled the shader logger. OpenGL shaders/programs are saved to the directory
  243. // "Shaders" under the main log path. Supported types included ARB/NV vertex/fragment
  244. // programs and vertex/fragment GLSL shaders/programs. ATI specific vertex/fragment
  245. // shaders are not supported.
  246. //
  247. // RenderCallStateLog - If enabled, each render call issued will list the currently bound
  248. // shaders (vertex and fragment). (works with text and XML logging)
  249. //
  250. // AttachLogState - If enabled, attitional information such as compile/link state and additional
  251. // driver information may be attached to each shader/program.
  252. // (Currently only GLSL support). Note that enabling this option may force
  253. // shaders to complete compiling immediately.
  254. //
  255. // ValidatePreRender - If the above AttachLogState is enabled, this option will perform a validation of
  256. // the shader before each render and append it to the log. Enabling this option will
  257. // cause the shader to be re-saved at each render call.
  258. // (GLSL only feature via glValidateProgram)
  259. //
  260. // UniformLogPreRender - If the above AttachLogState is enabled, this option will dump all uniforms that
  261. // are active in the shader before each render. Enabling this option will
  262. // cause the shader to be re-saved at each render call. (GLSL only feature)
  263. //
  264. //////////////////////////////////////////////////////////////
  265.  
  266. ShaderLog
  267. {
  268. LogEnabled = True;
  269.  
  270. RenderCallStateLog = True;
  271.  
  272. AttachLogState = True;
  273. ValidatePreRender = False;
  274. UniformLogPreRender = False;
  275.  
  276. //Future formatting options
  277. }
  278.  
  279. //////////////////////////////////////////////////////////////
  280. //
  281. // Display List logging
  282. //
  283. //////////////////////////////////////////////////////////////
  284. //
  285. // LogEnabled - Enabled the display list logger. OpenGL display lists are saved to the directory
  286. // "DisplayLists" under the main log path. If a program has a lot of big glBegin/glEnd
  287. // sections in display lists, (ie 1000's of glVertex calls) the application may seem
  288. // un-responsive on startup as all these calls are processed on the list creation.
  289. //
  290. //////////////////////////////////////////////////////////////
  291.  
  292. DisplayListLog
  293. {
  294. LogEnabled = True;
  295.  
  296. }
  297.  
  298. //////////////////////////////////////////////////////////////
  299. //
  300. // Frame(Buffer) logging
  301. //
  302. //////////////////////////////////////////////////////////////
  303. //
  304. // LogEnabled - Enabled the frame(buffer) logger. When enabled, each render call can
  305. // save the pre/post/diff frame buffer (color or depth) to view the changes
  306. // that the render call made. Frame buffer saves are written to a directory
  307. // "Frames" under the main log path.
  308. //
  309. // SaveFormat - The image format to save the frame buffer in. Current options are TGA,PNG, and JPG.
  310. // (see ImageLog::SaveFormats for a decription of the formats)
  311. //
  312. // FrameIcon->Enabled - This enables saving a icon version of all images saved. (useful in XML browser viewing)
  313. //
  314. // FrameIcon->SaveFormat - The format of the save icon images (TGA,PNG or JPG)
  315. //
  316. // FrameIcon->Size - The size of the icons to save
  317. //
  318. // FrameMovie->Enabled - This enables a movie of the "post" and "diff" frame buffers to be saved. If multiple, buffers
  319. // are saved, they are tiled together. (This is useful to quicky inspect how a frame is composed)
  320. // The resulting movie is called FrameMovie.avi in the frame buffer directory.
  321. //
  322. // FrameMovie->Size - The width height of the saved frame buffers. (ie. (640,480)) The resulting movie will be
  323. // larger if multiple buffers are saved at once as they are tiled together.
  324. //
  325. // FrameMovie->FrameRate - The frame rate of the saved movie.
  326. //
  327. // FrameMovie->Compression - The list of compression codecs used to save the movie (usually 4 letters).
  328. // The first valid codec is used. Special codecs are:
  329. // "menu" - will display a menu for the user to select a codec.
  330. // "none" - will use no compression.
  331. //
  332. // ColorBufferLog - The color frame buffer save options. Options can include any combination of
  333. // (pre,post,diff).
  334. // pre - The frame's color buffer is saved before the render call
  335. //
  336. // post - The frame's color buffer is saved after the render call
  337. //
  338. // diff - The difference between the pre and post buffer saves is written.
  339. // (green represents pixels with no differnce. If the image is red,
  340. // no image differences were detected)
  341. //
  342. // DepthBufferLog - The depth frame buffer save options. Options are the same as in ColorBufferLog.
  343. // (Note: Depth-buffer saving can be very slow)
  344. //
  345. // StencilBufferLog - The stencil frame buffer save options. Options are the same as in ColorBufferLog.
  346. // (Note: Stencil-buffer saving can be very slow)
  347. //
  348. // StencilColors - When saving the stencil buffer, it can be useful to save the buffer with color codes.
  349. // (ie stencil value 1 = red) This array supplies index color pairs for each stencil
  350. // value up to 255. The indices must be in order and the colors are in the format
  351. // AABBGGRR. If an index is missing, it will take the value of the index as the color.
  352. // (ie. stencil index 128 = (255, 128,128,128) = greyscale values)
  353. //
  354. //////////////////////////////////////////////////////////////
  355.  
  356. FrameLog
  357. {
  358. LogEnabled = False;
  359. SaveFormat = JPG;
  360.  
  361. FrameIcon
  362. {
  363. Enabled = True;
  364. SaveFormat = JPG;
  365. Size = 40;
  366. }
  367. FrameMovie
  368. {
  369. Enabled = False;
  370. Size = (640,480);
  371. FrameRate = 15;
  372. Compression = ("mpg4","divx","none");
  373. }
  374.  
  375. ColorBufferLog = (pre,post,diff);
  376. //DepthBufferLog = (pre,post,diff);
  377.  
  378. //StencilBufferLog = (pre,post,diff);
  379. StencilColors = (0,0xFF000000, //Black
  380. 1,0xFFFF0000, //Blue
  381. 2,0xFFFFFF00, //Light Blue
  382. 3,0xFF0000FF, //Red
  383. 4,0xFF00FFFF, //Yellow
  384. 5,0xFFFF00FF, //Purple
  385. 6,0xFF80FFFF, //Bright Yellow
  386. 7,0xFFFFFFFF); //White (Note green is not used as that is the "diff" color)
  387.  
  388. }
  389.  
  390.  
  391.  
  392. //////////////////////////////////////////////////////////////
  393. //
  394. // Function time logging
  395. //
  396. //////////////////////////////////////////////////////////////
  397. //
  398. // NOTE: It is important to not mis-use the results of this logger. OpenGL is a very pipelined
  399. // API and you can not optimize your code based on how long is spent in each function call.
  400. // This logger is only intended for advanced users to determine where pipeline stalls "MAY"
  401. // have occured and determine speeds of operations such as glReadPixels etc.
  402. //
  403. // LogEnabled - Enabled the timer log. When enabled, the time taken inside each OpenGL
  404. // function is added to the main log. (if enabled). The logging reports
  405. // in microseconds (millionth of a second). Only take these results as
  406. // approximate figures as GLIntercept will add a small amout of overhead.
  407. // (More overhead may be indicated in the functions wglGetProcAddress,
  408. // all wgl*(context) functions, glBegin,glEnd,glGetError)
  409. //
  410. // If you are using this logger to determine where pipeline stalls occur,
  411. // ensure to disable ALL other loggers (image/shader/frame etc) as these
  412. // loggers may cause pipline stalls. Also disable parameter logging by
  413. // not defining "GLFunctionDefines" and use flat text logging to get the
  414. // fastest logging possible. (and hence the most accurate results)
  415. //
  416. // LogCutoff - The number of microseconds below which the time value is not reported.
  417. //
  418. //////////////////////////////////////////////////////////////
  419.  
  420. TimerLog
  421. {
  422. LogEnabled = False;
  423.  
  424. LogCutoff = 20;
  425.  
  426. }
  427.  
  428.  
  429. //////////////////////////////////////////////////////////////
  430. //
  431. // Plugins
  432. //
  433. //////////////////////////////////////////////////////////////
  434. //
  435. // BaseDir - The base directory where the plugins can be found
  436. //
  437. // Plugins - Listing of all plugins to load (and the locations
  438. // to load from) Under each plugin, plugin specific options
  439. // can be specified.
  440. //
  441. //
  442. //////////////////////////////////////////////////////////////
  443.  
  444. PluginData
  445. {
  446.  
  447. BaseDir = "C:\Program Files\GLIntercept_1_3_0\Plugins";
  448.  
  449. Plugins
  450. {
  451.  
  452. //
  453. // Name of plugin | Plugin load location
  454. // { Plugin specific options. (See the plugins' config.ini file for options) }
  455.  
  456. // OpenGLFreeCamera = ("GLFreeCam/GLFreeCam.dll")
  457. // {
  458. // CameraMoveSpeed = 10.0;
  459. // }
  460.  
  461. }
  462. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement