From: TravisCI-DocBuilder Date: Wed, 11 Nov 2015 20:14:11 +0000 (+0000) Subject: Doc generated from commit c49480f5d52bd2aa375a98063ad1d4f937fe1fbb X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=3e6155423a487fc8a24c71601ffd771fd46a5172;p=corbenik%2Fctrulib.git Doc generated from commit c49480f5d52bd2aa375a98063ad1d4f937fe1fbb --- diff --git a/apt_8h.html b/apt_8h.html index 5b21b97..352dd51 100644 --- a/apt_8h.html +++ b/apt_8h.html @@ -2052,7 +2052,7 @@ Variables

Processes the current APT status.

Generally used within a main loop.

Returns
Whether the application is closing.
-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/console_8h.html b/console_8h.html index d4e31ee..2f4bb49 100644 --- a/console_8h.html +++ b/console_8h.html @@ -305,7 +305,7 @@ void 
Returns
A pointer to the current console.
-
Examples:
audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/get_system_language_2source_2main_8c-example.html b/get_system_language_2source_2main_8c-example.html index 8d1ec69..d61467c 100644 --- a/get_system_language_2source_2main_8c-example.html +++ b/get_system_language_2source_2main_8c-example.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
{
// Initialize services
-
initCfgu();
+
cfguInit();
u8 language = 0;
@@ -122,7 +122,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
}
// Exit services
-
exitCfgu();
+
cfguExit();
return 0;
}
diff --git a/gfx_8h.html b/gfx_8h.html index 79de85a..00be863 100644 --- a/gfx_8h.html +++ b/gfx_8h.html @@ -249,7 +249,7 @@ Variables

Closes the gsp service and frees the framebuffers.

Just call it when you're done.

-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
@@ -269,7 +269,7 @@ Variables

Flushes the current framebuffers.

Use this if the data within your framebuffers changes a lot and that you want to make sure everything was updated correctly. This shouldn't be needed and has a significant overhead.

-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
@@ -321,7 +321,7 @@ Variables
Returns
A pointer to the current framebuffer of the choosen screen.

Please remember that the returned pointer will change after each call to gfxSwapBuffers if double buffering is enabled.

-
Examples:
graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, http/source/main.c, mvd/source/main.c, qtm/source/main.c, and sdmc/source/main.c.
+
Examples:
graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, http/source/main.c, mvd/source/main.c, qtm/source/main.c, and sdmc/source/main.c.
@@ -414,7 +414,7 @@ You should always call GSP_BGR8_OES format in linear memory. This is the same as calling :

1 gfxInit(GSP_BGR8_OES,GSP_BGR8_OES,false);
Note
You should always call gfxExit once done to free the memory and services
-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
@@ -531,7 +531,7 @@ You should always call gfxSwapBuffers instead.

-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/gspgpu_8h.html b/gspgpu_8h.html index 5a559c7..2beb7b8 100644 --- a/gspgpu_8h.html +++ b/gspgpu_8h.html @@ -393,7 +393,7 @@ void audio/mic/source/main.c, and mvd/source/main.c. +
Examples:
audio/mic/source/main.c, and mvd/source/main.c.
@@ -453,7 +453,7 @@ void mvd/source/main.c. +
Examples:
mvd/source/main.c.
diff --git a/hid_8h.html b/hid_8h.html index d18428b..a683c92 100644 --- a/hid_8h.html +++ b/hid_8h.html @@ -520,7 +520,7 @@ Variables

Gets keys that were just pressed.

Individual keys can be checked by ORing them with this value.

Returns
Keys down.
-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/linear_8h.html b/linear_8h.html index 7876423..f8b8270 100644 --- a/linear_8h.html +++ b/linear_8h.html @@ -141,7 +141,7 @@ Functions
Returns
The allocated buffer.
-
Examples:
audio/mic/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, and mvd/source/main.c.
+
Examples:
audio/mic/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, and mvd/source/main.c.
@@ -166,7 +166,7 @@ Functions
-
Examples:
audio/mic/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, and mvd/source/main.c.
+
Examples:
audio/mic/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, and mvd/source/main.c.
diff --git a/mvd_2source_2main_8c-example.html b/mvd_2source_2main_8c-example.html index 501f229..f060a28 100644 --- a/mvd_2source_2main_8c-example.html +++ b/mvd_2source_2main_8c-example.html @@ -111,7 +111,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
u8* bufAdr = gfxGetFramebuffer(GFX_BOTTOM, GFX_LEFT, NULL, NULL);
u8* gfxtopadr = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
-
mvdstdConfig config;
+
MVDSTD_Config config;
char str[256];
@@ -140,28 +140,28 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
}
memset(gfxtopadr, 0, 0x46500);
-
GSPGPU_FlushDataCache(inaddr, 0x46500);
+
GSPGPU_FlushDataCache(inaddr, 0x46500);
printstring("mvd example\n");
-
ret = mvdstdInit(MVDMODE_COLORFORMATCONV, MVDTYPEIN_YUYV422, MVDTYPEOUT_RGB565, 0);
+
memset(str, 0, 256);
snprintf(str, sizeof(str)-1, "mvdstdInit(): 0x%08x\n", (unsigned int)ret);
printstring(str);
if(ret>=0)
{
-
mvdstdGenerateDefaultConfig(&config, 320, 240, 320, 240, (u32*)inaddr, (u32*)outaddr, (u32*)&outaddr[0x12c00]);
+
mvdstdGenerateDefaultConfig(&config, 320, 240, 320, 240, (u32*)inaddr, (u32*)outaddr, (u32*)&outaddr[0x12c00]);
-
ret = mvdstdProcessFrame(&config, NULL, 0, 0);
+
ret = mvdstdProcessFrame(&config, NULL, 0, 0);
memset(str, 0, 256);
snprintf(str, sizeof(str)-1, "mvdstdProcessFrame(): 0x%08x\n", (unsigned int)ret);
printstring(str);
}
-
svcSleepThread(1000000000);//Not sure how to determine when frame processing finishes.
+
svcSleepThread(1000000000);//Not sure how to determine when frame processing finishes.
-
GSPGPU_InvalidateDataCache(outaddr, 0x100000);
+
GSPGPU_InvalidateDataCache(outaddr, 0x100000);
f = fopen("sdmc:/mvd_outdata.bin", "w");
if(f)
@@ -179,21 +179,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
memcpy(gfxtopadr, outaddr, 0x46500);
-
mvdstdShutdown();
+
- - - + + +
}
int main()
{
- +
//gfxSet3D(true); // uncomment if using stereoscopic 3D
memset(logstring, 0, 256);
-
inaddr = linearAlloc(0x100000);
+
inaddr = linearAlloc(0x100000);
outaddr = linearAlloc(0x100000);
if(inaddr && outaddr)
@@ -204,22 +204,22 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
}
// Main loop
-
while (aptMainLoop())
+
while (aptMainLoop())
{
- +
// Your code goes here
-
u32 kDown = hidKeysDown();
-
if (kDown & KEY_START)
+
u32 kDown = hidKeysDown();
+
if (kDown & KEY_START)
break; // break in order to return to hbmenu
}
-
if(inaddr)linearFree(inaddr);
+
if(inaddr)linearFree(inaddr);
if(outaddr)linearFree(outaddr);
- +
return 0;
}
diff --git a/mvd_8h.html b/mvd_8h.html index 3431a73..c3653e9 100644 --- a/mvd_8h.html +++ b/mvd_8h.html @@ -313,7 +313,7 @@ void mvd/source/main.c. +
Examples:
mvd/source/main.c.
@@ -363,7 +363,7 @@ void mvd/source/main.c. +
Examples:
mvd/source/main.c.
@@ -413,7 +413,7 @@ void mvd/source/main.c. +
Examples:
mvd/source/main.c.
diff --git a/qtm_2source_2main_8c-example.html b/qtm_2source_2main_8c-example.html index 9fd527a..0993cf0 100644 --- a/qtm_2source_2main_8c-example.html +++ b/qtm_2source_2main_8c-example.html @@ -90,63 +90,63 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
u32 x, y;
Result ret;
bool qtm_usable;
-
qtmHeadtrackingInfo qtminfo;
+
u32 colors[4] = {0x0000FF, 0x00FF00, 0xFF0000, 0xFFFFFF};
- +
//gfxSet3D(true); // uncomment if using stereoscopic 3D
- +
- +
printf("qtm example\n");
-
qtm_usable = qtmCheckInitialized();
+
qtm_usable = qtmCheckInitialized();
if(!qtm_usable)printf("QTM is not usable, therefore this example won't do anything with QTM.\n");
// Main loop
-
while (aptMainLoop())
+
while (aptMainLoop())
{
- - + +
-
u32 kDown = hidKeysDown();
-
if (kDown & KEY_START)
+
u32 kDown = hidKeysDown();
+
if (kDown & KEY_START)
break; // break in order to return to hbmenu
if(qtm_usable)
{
-
u8* fb = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
+
u8* fb = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
memset(fb, 0, 400*240*3);
-
ret = qtmGetHeadtrackingInfo(0, &qtminfo);
+
ret = QTM_GetHeadTrackingInfo(0, &qtminfo);
if(ret==0)
{
- +
for(pos=0; pos<5; pos++)
{
-
printf("flags[%x]=0x%x", (unsigned int)pos, qtminfo.flags[pos]);
+
printf("flags[%x]=0x%x", (unsigned int)pos, qtminfo.flags[pos]);
if(pos<4)printf(", ");
}
-
printf("\nfloatdata_x08: %f\n", qtminfo.floatdata_x08);
+
printf("\nfloatdata_x08: %f\n", qtminfo.floatdata_x08);
printf("coords0: ");
for(pos=0; pos<4; pos++)
{
-
printf("[%x].x=%f, y=%f", (unsigned int)pos, qtminfo.coords0[pos].x, qtminfo.coords0[pos].y);
+
printf("[%x].x=%f, y=%f", (unsigned int)pos, qtminfo.coords0[pos].x, qtminfo.coords0[pos].y);
if(pos<3)printf(", ");
}
printf("\n");
- +
{
for(pos=0; pos<4; pos++)
{
-
ret = qtmConvertCoordToScreen(&qtminfo.coords0[pos], NULL, NULL, &x, &y);
+
ret = qtmConvertCoordToScreen(&qtminfo.coords0[pos], NULL, NULL, &x, &y);
if(ret==0)memcpy(&fb[(x*240 + y) * 3], &colors[pos], 3);
}
@@ -155,13 +155,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
}
// Flush and swap framebuffers
- - + +
}
// Exit services
- - + +
return 0;
}
diff --git a/qtm_8h.html b/qtm_8h.html index d8a3fcd..d8fadc0 100644 --- a/qtm_8h.html +++ b/qtm_8h.html @@ -166,7 +166,8 @@ void qtm/source/main.c. +
@@ -190,7 +191,7 @@ void qtm/source/main.c. +
Examples:
qtm/source/main.c.
@@ -210,7 +211,7 @@ void 
Returns
Whether QTM is initialized.
-
Examples:
qtm/source/main.c.
+
Examples:
qtm/source/main.c.
@@ -267,7 +268,7 @@ void qtm/source/main.c. +
Examples:
qtm/source/main.c.
diff --git a/sdmc_2source_2main_8c-example.html b/sdmc_2source_2main_8c-example.html index 43c7a40..a5a8abc 100644 --- a/sdmc_2source_2main_8c-example.html +++ b/sdmc_2source_2main_8c-example.html @@ -167,7 +167,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
//wait & swap
-
gspWaitForEvent(GSPEVENT_VBlank0, false);
+
}
//cleanup and return
@@ -175,7 +175,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
exit:
//closing all services even more so
- +
return 0;
}
diff --git a/structMVDSTD__Config.html b/structMVDSTD__Config.html index 7262cbd..32934c6 100644 --- a/structMVDSTD__Config.html +++ b/structMVDSTD__Config.html @@ -176,7 +176,8 @@ Data Fields

Detailed Description

Processing configuration.

-

The documentation for this struct was generated from the following file:
    +
    Examples:
    mvd/source/main.c.
    +

    The documentation for this struct was generated from the following file:
    • include/3ds/services/mvd.h
    diff --git a/structQTM__HeadTrackingInfo.html b/structQTM__HeadTrackingInfo.html index 3beeafe..64a431d 100644 --- a/structQTM__HeadTrackingInfo.html +++ b/structQTM__HeadTrackingInfo.html @@ -120,7 +120,8 @@ float 

    Detailed Description

    Head tracking info.

    -

    The documentation for this struct was generated from the following file:
      +
      Examples:
      qtm/source/main.c.
      +

      The documentation for this struct was generated from the following file:
      • include/3ds/services/qtm.h
      diff --git a/svc_8h.html b/svc_8h.html index 319ccba..9b397ca 100644 --- a/svc_8h.html +++ b/svc_8h.html @@ -3206,7 +3206,7 @@ Debugging
-
Examples:
mvd/source/main.c, and threads/event/source/main.c.
+
Examples:
mvd/source/main.c, and threads/event/source/main.c.